Browse Source

开箱抽奖优化

lizhen_gitee 1 năm trước cách đây
mục cha
commit
31a7d1b4a7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/api/controller/Eggnew.php

+ 1 - 1
application/api/controller/Eggnew.php

@@ -75,7 +75,7 @@ class Eggnew extends Api
         Db::startTrans();
 
         //判断钻石余额
-        $user_jewel = model('wallet')->getwalletname($user_id,'jewel');
+        $user_jewel = model('wallet')->getwallet($user_id,'jewel');
         if($user_jewel < $total_jewel){
             $this->error('钻石不足');
             Db::rollback();