Ken 3 hari lalu
induk
melakukan
dfcb7be4ac
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      app/Http/Controllers/admin/Rebate.php

+ 3 - 3
app/Http/Controllers/admin/Rebate.php

@@ -48,9 +48,9 @@ class Rebate extends Controller
             $rebate = RebateService::findOne($params);
             if (!$rebate) throw new Exception('数据不存在', HttpStatus::CUSTOM_ERROR);
             $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);
             DB::commit();
         } catch (ValidationException $e) {