Commit b2c6f309 b2c6f3092923586329ae73a192a96430c1e9e913 by lemon

*

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