Browse Source

钱包迁移,收尾

lizhen_gitee 2 years ago
parent
commit
ce54912964

+ 3 - 2
application/api/controller/Money.php

@@ -917,12 +917,12 @@ class Money extends Common
                 $this->error("声币余额不足!", [], 100);
                 $this->error("声币余额不足!", [], 100);
             }
             }
 
 
-            $moneylogModel = new \app\common\model\UserMoneyLog();
+//            $moneylogModel = new \app\common\model\UserMoneyLog();
             $soundlogModel = new \app\common\model\UserSoundcoinLog();
             $soundlogModel = new \app\common\model\UserSoundcoinLog();
             $exchangelogModel = new \app\common\model\UserExchangeLog();
             $exchangelogModel = new \app\common\model\UserExchangeLog();
             $detail = "声币兑换余额";
             $detail = "声币兑换余额";
             // 添加资金流水记录
             // 添加资金流水记录
-            $res1 = $moneylogModel->addRecord($this->auth->id, $exchangeMoney, "+", $userInfo["money"], $detail);
+//            $res1 = $moneylogModel->addRecord($this->auth->id, $exchangeMoney, "+", $userInfo["money"], $detail);
             // 添加兑换记录
             // 添加兑换记录
             $res2 = $exchangelogModel->addExchangeLog($this->auth->id, $scoin, $exchangeMoney);
             $res2 = $exchangelogModel->addExchangeLog($this->auth->id, $scoin, $exchangeMoney);
             // 添加声币流水记录
             // 添加声币流水记录
@@ -1410,6 +1410,7 @@ class Money extends Common
      */
      */
     public function withdrawVerify($user_id)
     public function withdrawVerify($user_id)
     {
     {
+        exit;
         if (!$user_id) return false;
         if (!$user_id) return false;
         // 统计用户所有兑换记录和提现记录 是否与余额匹配
         // 统计用户所有兑换记录和提现记录 是否与余额匹配
         $moneylog = \app\common\model\UserMoneyLog::where(["user_id" => $user_id, "mode" => "+"])->sum('value');
         $moneylog = \app\common\model\UserMoneyLog::where(["user_id" => $user_id, "mode" => "+"])->sum('value');

+ 2 - 3
application/common/model/UserJewelLog.php

@@ -18,9 +18,8 @@ class UserJewelLog extends Model
     /**
     /**
      * 用户钻石余额变更
      * 用户钻石余额变更
      */
      */
-    public function addUserJewelLog($user_id, $money, $mode, $before, $detail, $type = 1)
+    /*public function addUserJewelLog($user_id, $money, $mode, $before, $detail, $type = 1)
     {
     {
-        测试报错
         if ($mode == "+") {
         if ($mode == "+") {
             $balance = $before + $money;
             $balance = $before + $money;
         } else {
         } else {
@@ -37,5 +36,5 @@ class UserJewelLog extends Model
         $data["detail"] = $detail;
         $data["detail"] = $detail;
         $data["createtime"] = time();
         $data["createtime"] = time();
         return $this->insertGetId($data);
         return $this->insertGetId($data);
-    }
+    }*/
 }
 }

+ 2 - 2
application/common/model/UserMoneyLog.php

@@ -15,7 +15,7 @@ class UserMoneyLog extends Model
     // 定义时间戳字段名
     // 定义时间戳字段名
     protected $createTime = 'createtime';
     protected $createTime = 'createtime';
 
 
-    public function addRecord($userId=0, $money=0, $mode='+', $before=0, $detail='', $type = 1)
+    /*public function addRecord($userId=0, $money=0, $mode='+', $before=0, $detail='', $type = 1)
     {
     {
         if ($mode == "+") {
         if ($mode == "+") {
             $balance = $before + $money;
             $balance = $before + $money;
@@ -33,6 +33,6 @@ class UserMoneyLog extends Model
         $data["detail"] = $detail;
         $data["detail"] = $detail;
         $data["createtime"] = time();
         $data["createtime"] = time();
         return $this->insertGetId($data);
         return $this->insertGetId($data);
-    }
+    }*/
 
 
 }
 }