Ken hace 3 días
padre
commit
643f7061ae
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      app/Http/Controllers/api/ActivityReward.php

+ 2 - 4
app/Http/Controllers/api/ActivityReward.php

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