Commit b2c6f309 b2c6f3092923586329ae73a192a96430c1e9e913 by lemon

*

1 parent 2d91bbd4
......@@ -26,15 +26,15 @@ class MusicianWithdrawService extends Service
$order_id = $this->request->input('order_id');
if (!RedisClient::instance()->set(str_replace('#order#', $order_id, config('cachekey.withdraw.prepare')), true, "nx", "ex", 3)) {
return $this->error(ErrorCode::REPEAT_SUBMIT);
return Response::error(ErrorCode::REPEAT_SUBMIT);
}
$order = CashOutOrder::query()->where(['order_id'=>$order_id, 'withdraw_state'=>CashOutOrder::WITHDRAW_STATE_DEFAULT, 'status'=>CashOutOrder::STATUS_WAIT])->first();
//订单非法
if (empty($order)) return $this->error(ErrorCode::ORDER_ILLEGAl);
if (empty($order->balance_detail)) return $this->error(ErrorCode::ORDER_WITHDRAW_ERROR);
if (empty($order->cash_out_money)) return $this->error(ErrorCode::ORDER_MONEY_ERROR);
if (empty($order)) return Response::error(ErrorCode::ORDER_ILLEGAl);
if (empty($order->balance_detail)) return Response::error(ErrorCode::ORDER_WITHDRAW_ERROR);
if (empty($order->cash_out_money)) return Response::error(ErrorCode::ORDER_MONEY_ERROR);
Db::beginTransaction();
try {
......