| xqd
@@ -705,7 +705,7 @@ class AlbumController extends Controller
|
|
|
]);
|
|
|
if ($validator->fails()) {
|
|
|
return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
|
|
|
- }//dd(111);
|
|
|
+ }
|
|
|
$type = $request->input('type');
|
|
|
$store_id = $request->input('store_id');
|
|
|
if($userAuth->is_dealer!=1) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '该用户不是经销商!', $validator->messages());
|
| 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, '传入参数不正确!');
|