生成分享链接并且生成token
Showing
1 changed file
with
4 additions
and
1 deletions
| ... | @@ -39,7 +39,10 @@ class PropertyTrackService extends Service | ... | @@ -39,7 +39,10 @@ class PropertyTrackService extends Service | 
| 39 | }) | 39 | }) | 
| 40 | ->when(filled($this->request->input('song_name')), function (Builder $builder){ | 40 | ->when(filled($this->request->input('song_name')), function (Builder $builder){ | 
| 41 | $builder->where('song_name', 'like', "%{$this->request->input('song_name')}%"); | 41 | $builder->where('song_name', 'like', "%{$this->request->input('song_name')}%"); | 
| 42 | })->orderByDesc('id')->paginate($this->pageSize); | 42 | })->when(filled($this->request->input('status')), function (Builder $builder){ | 
| 43 | $builder->where('status', $this->request->input('status')); | ||
| 44 | }) | ||
| 45 | ->orderByDesc('id')->paginate($this->pageSize); | ||
| 43 | 46 | ||
| 44 | return Response::success($res); | 47 | return Response::success($res); | 
| 45 | } | 48 | } | ... | ... | 
- 
Please register or sign in to post a comment