Explorar o código

开箱抽奖优化

lizhen_gitee %!s(int64=2) %!d(string=hai) anos
pai
achega
31a7d1b4a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();