|
|
@@ -25,7 +25,7 @@ class ActivityReward extends BaseController
|
|
|
]);
|
|
|
$memberId = request()->input('member_id');
|
|
|
$user = UserService::findOne(['member_id' => $memberId]);
|
|
|
- if(empty($user->phone)) throw new Exception('请先绑定手机号', HttpStatus::NOT_BIND_PHONE);
|
|
|
+ if (empty($user->phone)) throw new Exception('请先绑定手机号', HttpStatus::NOT_BIND_PHONE);
|
|
|
|
|
|
if (ActivityUser::where('member_id', $memberId)->where('status', 0)->exists()) {
|
|
|
throw new Exception('完成活动才可以参与新活动', HttpStatus::CUSTOM_ERROR);
|
|
|
@@ -60,7 +60,7 @@ class ActivityReward extends BaseController
|
|
|
} catch (ValidationException $e) {
|
|
|
return $this->error($e->validator->errors()->first());
|
|
|
} catch (Exception $e) {
|
|
|
- return $this->error($e->getMessage(),[],$e->getCode());
|
|
|
+ return $this->error($e->getMessage(), [], $e->getCode());
|
|
|
}
|
|
|
return $this->success();
|
|
|
}
|