李帅

1.修复一些bug

......@@ -53,7 +53,7 @@ class ImmerseController extends Controller
$user_id = $request->user()->id;
$user_profile = UserProfile::query()->where('user_id', $user_id)->first();
if ($user_profile->is_vip == UserProfile::NO_VIP && $user_profile->video_count > UserProfile::MAX_FREE_QUOTA) {
if ($user_profile->is_vip == UserProfile::NO_VIP && $user_profile->video_count >= UserProfile::MAX_FREE_QUOTA) {
return Response::fail("非VIP用户最多发布5个视频");
}
......
......@@ -62,7 +62,7 @@ class UserMakeImmerse implements ShouldQueue
$this->output_width = 720;
$this->output_height = 1280;
}else{
if ($profile->video_count > UserProfile::MAX_FREE_QUOTA) {
if ($profile->video_count >= UserProfile::MAX_FREE_QUOTA) {
Log::channel("daily")->alert("超过最大免费配额了");
return ;
}
......