Browse Source

提现设阈值

master
weigang 5 years ago
parent
commit
36b03a0c09
  1. 9
      app/Controller/v3/WithdrawController.php

9
app/Controller/v3/WithdrawController.php

@ -127,6 +127,15 @@ class WithdrawController extends BaseController
$money = $this->request->input('money');
$userId = $this->request->input('user_id');
$storeId = $this->request->input('store_id');
if ($money >= 500) {
$this->log->event(LogLabel::STORE_WITHDRAW_FAIL_LOG, [
'msg' => '提现失败[1000]',
'params' => json_encode(['money' => $money, 'user_id' => $userId, 'store_id' => $storeId]),
]);
throw new ErrorCodeException(ErrorCode::WITHDRAW_PAYMENT_FAIL);
}
$store = Store::query()->where(['user_id' => $userId, 'id' => $storeId])->first();
if (empty($store)) {
$msg = ['user_id' => $userId, 'storeId' => $storeId];

Loading…
Cancel
Save