Procházet zdrojové kódy

Fixed 添加拒绝日志

程旭源 před 7 měsíci
rodič
revize
f4a2606182

+ 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)