浏览代码

Fixed 添加拒绝日志

程旭源 7 月之前
父节点
当前提交
f4a2606182
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      application/admin/controller/greenroom/Withdrawal.php

+ 1 - 0
application/admin/controller/greenroom/Withdrawal.php

@@ -163,6 +163,7 @@ class Withdrawal extends Backend
             if ($withdraw->status != 1) throw new \Exception('状态错误');
             $withdraw->status = -1;
             $withdraw->save();
+            \app\admin\model\Admin::money($withdraw->amount, $this->auth->id,'Withdrawal');
             \app\admin\model\Admin::where("id", $withdraw->uid)->setInc("money", $withdraw->amount);
 //            \app\admin\model\Admin::update([
 //                'money' => bcadd($withdraw->amount, 3, 4)