Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2023-05-18 16:04:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fb91cae43ced43d6d0c24eb9660969a4301e0c11
fb91cae4
1 parent
c17da486
1.修复一些bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Http/Controllers/V1/ImmerseController.php
app/Http/Controllers/V1/ImmerseController.php
View file @
fb91cae
...
...
@@ -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
>
5
)
{
if
(
$user_profile
->
is_vip
==
UserProfile
::
NO_VIP
&&
$user_profile
->
video_count
>
5
)
{
return
Response
::
fail
(
"非VIP用户最多发布5个视频"
);
}
...
...
Please
register
or
login
to post a comment