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:24:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
754058ae7524833905d018dfcd54f1b0fd96d7b7
754058ae
1 parent
acbf05f8
1.修复一些bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/V1/ImmerseController.php
app/Jobs/UserMakeImmerse.php
app/Http/Controllers/V1/ImmerseController.php
View file @
754058a
...
...
@@ -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个视频"
);
}
...
...
app/Jobs/UserMakeImmerse.php
View file @
754058a
...
...
@@ -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
;
}
...
...
Please
register
or
login
to post a comment