Ken hai 1 semana
pai
achega
688d6fd238
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Http/Controllers/api/ActivityReward.php

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

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