|
@@ -48,9 +48,9 @@ class Rebate extends Controller
|
|
|
$rebate = RebateService::findOne($params);
|
|
$rebate = RebateService::findOne($params);
|
|
|
if (!$rebate) throw new Exception('数据不存在', HttpStatus::CUSTOM_ERROR);
|
|
if (!$rebate) throw new Exception('数据不存在', HttpStatus::CUSTOM_ERROR);
|
|
|
$date = Carbon::now('America/New_York')->format('Y-m-d');
|
|
$date = Carbon::now('America/New_York')->format('Y-m-d');
|
|
|
-// if (strtotime($rebate->date) >= strtotime($date)) {
|
|
|
|
|
-// throw new Exception('未到发放时间', HttpStatus::CUSTOM_ERROR);
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (strtotime($rebate->date) >= strtotime($date)) {
|
|
|
|
|
+ throw new Exception('未到发放时间', HttpStatus::CUSTOM_ERROR);
|
|
|
|
|
+ }
|
|
|
RebateService::BibiReturn($rebate, $rebate->effective_betting_amount);
|
|
RebateService::BibiReturn($rebate, $rebate->effective_betting_amount);
|
|
|
DB::commit();
|
|
DB::commit();
|
|
|
} catch (ValidationException $e) {
|
|
} catch (ValidationException $e) {
|