|
|
@@ -37,7 +37,7 @@ class ActivityUser extends Controller
|
|
|
if (Cache::has($key)) throw new Exception("请求太频繁,请稍后再试。", HttpStatus::CUSTOM_ERROR);
|
|
|
Cache::put($key, true, 3);
|
|
|
$activityUser = ActivityUserService::findOne(['id' => $id, 'status' => 0]);
|
|
|
- if (!$activityUser) throw new Exception("活动已完成或活动不存在", HttpStatus::CUSTOM_ERROR);
|
|
|
+ if (!$activityUser) throw new Exception("活动不存在或已完成", HttpStatus::CUSTOM_ERROR);
|
|
|
$memberId = $activityUser->member_id;
|
|
|
$activityUser->status = 1;
|
|
|
$activityUser->finish_time = time();
|