Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -53,7 +53,7 @@ class ImmerseController extends Controller | ... | @@ -53,7 +53,7 @@ class ImmerseController extends Controller |
53 | 53 | ||
54 | $user_id = $request->user()->id; | 54 | $user_id = $request->user()->id; |
55 | $user_profile = UserProfile::query()->where('user_id', $user_id)->first(); | 55 | $user_profile = UserProfile::query()->where('user_id', $user_id)->first(); |
56 | - if ($user_profile->is_vip == UserProfile::NO_VIP && $user_profile->video_count > UserProfile::MAX_FREE_QUOTA) { | 56 | + if ($user_profile->is_vip == UserProfile::NO_VIP && $user_profile->video_count >= UserProfile::MAX_FREE_QUOTA) { |
57 | return Response::fail("非VIP用户最多发布5个视频"); | 57 | return Response::fail("非VIP用户最多发布5个视频"); |
58 | } | 58 | } |
59 | 59 | ... | ... |
... | @@ -62,7 +62,7 @@ class UserMakeImmerse implements ShouldQueue | ... | @@ -62,7 +62,7 @@ class UserMakeImmerse implements ShouldQueue |
62 | $this->output_width = 720; | 62 | $this->output_width = 720; |
63 | $this->output_height = 1280; | 63 | $this->output_height = 1280; |
64 | }else{ | 64 | }else{ |
65 | - if ($profile->video_count > UserProfile::MAX_FREE_QUOTA) { | 65 | + if ($profile->video_count >= UserProfile::MAX_FREE_QUOTA) { |
66 | Log::channel("daily")->alert("超过最大免费配额了"); | 66 | Log::channel("daily")->alert("超过最大免费配额了"); |
67 | return ; | 67 | return ; |
68 | } | 68 | } | ... | ... |
-
Please register or login to post a comment