|
@@ -34,9 +34,7 @@ class ActivityReward extends BaseController
|
|
|
// $key = 'api_request_' . md5(json_encode($keys));
|
|
// $key = 'api_request_' . md5(json_encode($keys));
|
|
|
// if (Cache::has($key)) throw new Exception("请求太频繁,请稍后再试。", HttpStatus::CUSTOM_ERROR);
|
|
// if (Cache::has($key)) throw new Exception("请求太频繁,请稍后再试。", HttpStatus::CUSTOM_ERROR);
|
|
|
// Cache::put($key, true, 60);
|
|
// Cache::put($key, true, 60);
|
|
|
- $res = SmsService::sendPhoneCode($params['phone']);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ SmsService::sendPhoneCode($params['phone']);
|
|
|
} catch (ValidationException $e) {
|
|
} catch (ValidationException $e) {
|
|
|
|
|
|
|
|
return $this->error($e->validator->errors()->first());
|
|
return $this->error($e->validator->errors()->first());
|
|
@@ -44,7 +42,7 @@ class ActivityReward extends BaseController
|
|
|
|
|
|
|
|
return $this->error($e->getMessage(), [], $e->getCode());
|
|
return $this->error($e->getMessage(), [], $e->getCode());
|
|
|
}
|
|
}
|
|
|
- return $this->success($res);
|
|
|
|
|
|
|
+ return $this->success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function participate(): JsonResponse
|
|
public function participate(): JsonResponse
|