|
@@ -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');
|