|
@@ -1610,7 +1610,7 @@ class User extends Api
|
|
}
|
|
}
|
|
|
|
|
|
if($user['diamond'] < $diamondpayfate) {
|
|
if($user['diamond'] < $diamondpayfate) {
|
|
- $this->error(__('钻石余额不足,请先充值!'), [],100);
|
|
|
|
|
|
+ $this->error(__('钻石余额不足,请先充值!'), (string)($diamondpayfate - $user['diamond']),100);
|
|
} else {
|
|
} else {
|
|
Db::startTrans();
|
|
Db::startTrans();
|
|
try {
|
|
try {
|
|
@@ -1788,7 +1788,7 @@ class User extends Api
|
|
$this->error('支付数量异常,请联系管理员');
|
|
$this->error('支付数量异常,请联系管理员');
|
|
}
|
|
}
|
|
if ($this->auth->diamond < $manpaychat) {
|
|
if ($this->auth->diamond < $manpaychat) {
|
|
- $this->error(__('钻石余额不足,请先充值!'), [],100);
|
|
|
|
|
|
+ $this->error(__('钻石余额不足,请先充值!'), (string)($manpaychat - $this->auth->diamond),100);
|
|
}
|
|
}
|
|
|
|
|
|
//开启事务
|
|
//开启事务
|