| xqd
@@ -32,11 +32,11 @@ class PhotosController extends Controller
|
|
|
$status = 'normal';
|
|
|
if($request->has('search')) {
|
|
|
$name = '%' . $request->input('search') . '%';
|
|
|
- $photos = BaseAttachmentModel::where('name', 'like', $name)->paginate(24);
|
|
|
+ $photos = BaseAttachmentModel::where([['name', 'like', $name],['store_id', $this->getStoreId()]])->paginate(24);
|
|
|
$status = 'search';
|
|
|
} else {
|
|
|
if($a_class){
|
|
|
- $photos = BaseAttachmentModel::where('class', $a_class->class)->paginate(24);
|
|
|
+ $photos = BaseAttachmentModel::where([['class', $a_class->class],['store_id', $this->getStoreId()]])->paginate(24);
|
|
|
}
|
|
|
}
|
|
|
|