Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
9ed22653
...
9ed22653096047af173a55b9074bb8e406be80d0
authored
2022-12-14 12:01:03 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上传
1 parent
441b563f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
app/Services/PropertyTrackService.php
app/Services/PropertyTrackService.php
View file @
9ed2265
...
...
@@ -301,7 +301,11 @@ class PropertyTrackService extends Service
]);
//更新上传时间和状态
PropertyTrack
::
query
()
->
where
([
'id'
=>
$this
->
request
->
offsetGet
(
'track_id'
)])
->
update
([
'status'
=>
1
,
'upload_time'
=>
$this
->
now
]);
PropertyTrack
::
query
()
->
where
([
'id'
=>
$this
->
request
->
offsetGet
(
'track_id'
)])
->
update
([
'status'
=>
1
,
'upload_time'
=>
$this
->
now
,
'total_size'
=>
DB
::
raw
(
"total_size +
{
$this
->
request
->
input
(
'size'
)
}
"
),
]);
});
return
Response
::
success
();
...
...
@@ -364,7 +368,11 @@ class PropertyTrackService extends Service
//更新上传时间和状态
PropertyTrack
::
query
()
->
where
([
'id'
=>
$this
->
request
->
input
(
'track_id'
)])
->
update
([
'status'
=>
1
,
'upload_time'
=>
$this
->
now
]);
PropertyTrack
::
query
()
->
where
([
'id'
=>
$this
->
request
->
input
(
'track_id'
)])
->
update
([
'status'
=>
1
,
'upload_time'
=>
$this
->
now
,
'total_size'
=>
DB
::
raw
(
"total_size +
{
$this
->
request
->
input
(
'size'
)
}
"
),
]);
});
...
...
Please
register
or
sign in
to post a comment