Ken hai 11 horas
pai
achega
17f4888ca4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/api/ActivityReward.php

+ 1 - 1
app/Http/Controllers/api/ActivityReward.php

@@ -113,7 +113,7 @@ class ActivityReward extends BaseController
                 'id' => $activityId
                 'id' => $activityId
             ]);
             ]);
             if (!$activity) throw new Exception('活动不存在', HttpStatus::CUSTOM_ERROR);
             if (!$activity) throw new Exception('活动不存在', HttpStatus::CUSTOM_ERROR);
-            if ($activity->start_time > $time) throw new Exception('活动未开始', HttpStatus::CUSTOM_ERROR);
+            if ($activity->start_time > $time) throw new Exception("活动未开始$activity->start_time", HttpStatus::CUSTOM_ERROR);
             if ($activity->end_time < $time) throw new Exception('活动已结束', HttpStatus::CUSTOM_ERROR);
             if ($activity->end_time < $time) throw new Exception('活动已结束', HttpStatus::CUSTOM_ERROR);