作者 何书鹏

骑手提现优化

@@ -356,7 +356,7 @@ class Rider extends Api @@ -356,7 +356,7 @@ class Rider extends Api
356 if ($user['money'] < $money) $this->error('可提现金额不足'); 356 if ($user['money'] < $money) $this->error('可提现金额不足');
357 $data = [ 357 $data = [
358 'user_id' => $this->auth->id, 358 'user_id' => $this->auth->id,
359 - 'money' => $money, 359 + 'money' => -$money,
360 'before' => $user->money, 360 'before' => $user->money,
361 'after' => $user->money-$money, 361 'after' => $user->money-$money,
362 'memo' => '提现' 362 'memo' => '提现'