Browse Source

修改钻石支付

15954078560 3 năm trước cách đây
mục cha
commit
53e9d53fdb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      application/api/controller/User.php

+ 2 - 2
application/api/controller/User.php

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