|
|
@@ -555,8 +555,13 @@ class OrderController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$search = isset($get['search']) ? $get['search'] : '';
|
|
|
+ $shopId = $this->shopId ?? 0;
|
|
|
+ if (empty($shopId)) {
|
|
|
+ //没有登录不显示数据
|
|
|
+ util::success(['list' => [], 'moreData' => 0, 'shop' => [], 'totalNum' => 0, 'totalPage' => 0]);
|
|
|
+ }
|
|
|
$where = [];
|
|
|
- $where['shopId'] = $this->shopId;
|
|
|
+ $where['shopId'] = $shopId;
|
|
|
$status = $get['status'] ?? 0;
|
|
|
if (!empty($status)) {
|
|
|
$where['status'] = $get['status'];
|