李帅

1.修复一些bug

...@@ -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 > 5) { 56 + if ($user_profile->is_vip == UserProfile::NO_VIP && $user_profile->video_count > 5) {
57 return Response::fail("非VIP用户最多发布5个视频"); 57 return Response::fail("非VIP用户最多发布5个视频");
58 } 58 }
59 59
......