上传
Showing
1 changed file
with
10 additions
and
2 deletions
... | @@ -301,7 +301,11 @@ class PropertyTrackService extends Service | ... | @@ -301,7 +301,11 @@ class PropertyTrackService extends Service |
301 | ]); | 301 | ]); |
302 | 302 | ||
303 | //更新上传时间和状态 | 303 | //更新上传时间和状态 |
304 | PropertyTrack::query()->where(['id'=>$this->request->offsetGet('track_id')])->update(['status'=>1, 'upload_time'=>$this->now]); | 304 | PropertyTrack::query()->where(['id'=>$this->request->offsetGet('track_id')])->update([ |
305 | 'status' => 1, | ||
306 | 'upload_time' => $this->now, | ||
307 | 'total_size' => DB::raw("total_size + {$this->request->input('size')}"), | ||
308 | ]); | ||
305 | }); | 309 | }); |
306 | 310 | ||
307 | return Response::success(); | 311 | return Response::success(); |
... | @@ -364,7 +368,11 @@ class PropertyTrackService extends Service | ... | @@ -364,7 +368,11 @@ class PropertyTrackService extends Service |
364 | 368 | ||
365 | 369 | ||
366 | //更新上传时间和状态 | 370 | //更新上传时间和状态 |
367 | PropertyTrack::query()->where(['id'=>$this->request->input('track_id')])->update(['status'=>1, 'upload_time'=>$this->now]); | 371 | PropertyTrack::query()->where(['id'=>$this->request->input('track_id')])->update([ |
372 | 'status' => 1, | ||
373 | 'upload_time' => $this->now, | ||
374 | 'total_size' => DB::raw("total_size + {$this->request->input('size')}"), | ||
375 | ]); | ||
368 | 376 | ||
369 | }); | 377 | }); |
370 | 378 | ... | ... |
-
Please register or sign in to post a comment