| xqd
@@ -714,7 +714,7 @@ class AlbumController extends Controller
|
|
|
switch ($type){
|
|
|
case '1':
|
|
|
if(!$request->input('user_id')) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!');
|
|
|
- $query = $query->Where(['user_id',$request->input('user_id')]);
|
|
|
+ $query = $query->Where('user_id',$request->input('user_id'));
|
|
|
break;
|
|
|
case '2':
|
|
|
if(!$request->input('start_time')||!$request->input('end_time')) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!');
|
| xqd
@@ -724,7 +724,7 @@ class AlbumController extends Controller
|
|
|
break;
|
|
|
case '3':
|
|
|
if(!$request->input('action')) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!');
|
|
|
- $query = $query->Where(['action',$request->input('action')]);
|
|
|
+ $query = $query->Where('action',$request->input('action'));
|
|
|
break;
|
|
|
}
|
|
|
$res = $query->get();
|