|
@@ -163,11 +163,12 @@ class Withdrawal extends Backend
|
|
if ($withdraw->status != 1) throw new \Exception('状态错误');
|
|
if ($withdraw->status != 1) throw new \Exception('状态错误');
|
|
$withdraw->status = -1;
|
|
$withdraw->status = -1;
|
|
$withdraw->save();
|
|
$withdraw->save();
|
|
- \app\admin\model\Admin::update([
|
|
|
|
- 'money' => bcadd($withdraw->amount, 3, 4)
|
|
|
|
- ], [
|
|
|
|
- 'id' => $withdraw->uid
|
|
|
|
- ]);
|
|
|
|
|
|
+ \app\admin\model\Admin::where("id", $withdraw->uid)->setInc("money", $withdraw->amount);
|
|
|
|
+// \app\admin\model\Admin::update([
|
|
|
|
+// 'money' => bcadd($withdraw->amount, 3, 4)
|
|
|
|
+// ], [
|
|
|
|
+// 'id' => $withdraw->uid
|
|
|
|
+// ]);
|
|
Db::commit();
|
|
Db::commit();
|
|
return \json(['code' => 1, 'msg' => '驳回成功']);
|
|
return \json(['code' => 1, 'msg' => '驳回成功']);
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|