|
@@ -28,6 +28,7 @@ class ActivityReward extends BaseController
|
|
|
'phone' => ['required', 'string'],
|
|
'phone' => ['required', 'string'],
|
|
|
]);
|
|
]);
|
|
|
$keys = [
|
|
$keys = [
|
|
|
|
|
+ 'phone' => $params['phone'],
|
|
|
'ip' => request()->ip(),
|
|
'ip' => request()->ip(),
|
|
|
'action' => request()->action,
|
|
'action' => request()->action,
|
|
|
];
|
|
];
|
|
@@ -37,8 +38,6 @@ class ActivityReward extends BaseController
|
|
|
$code = SmsService::sendPhoneCode($params['phone']);
|
|
$code = SmsService::sendPhoneCode($params['phone']);
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
} catch (ValidationException $e) {
|
|
} catch (ValidationException $e) {
|
|
|
|
|
|
|
|
return $this->error($e->validator->errors()->first());
|
|
return $this->error($e->validator->errors()->first());
|
|
@@ -46,7 +45,7 @@ class ActivityReward extends BaseController
|
|
|
|
|
|
|
|
return $this->error($e->getMessage(), [], $e->getCode());
|
|
return $this->error($e->getMessage(), [], $e->getCode());
|
|
|
}
|
|
}
|
|
|
- return $this->success($code);
|
|
|
|
|
|
|
+ return $this->success($keys);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function participate(): JsonResponse
|
|
public function participate(): JsonResponse
|