Ken 1 Minggu lalu
induk
melakukan
688d6fd238
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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');
             $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();
     }