|
|
@@ -60,11 +60,12 @@ class StatBookController extends BaseController
|
|
|
$where = [];
|
|
|
$where['mainId'] = $this->mainId;
|
|
|
$bookSn = $get['bookSn'] ?? '';
|
|
|
+ $shop = $this->shop;
|
|
|
if (empty($bookSn)) {
|
|
|
$shop = $this->shop;
|
|
|
$bookSn = $shop->bookSn ?? 0;
|
|
|
if (empty($bookSn)) {
|
|
|
- util::fail('请选择预订活动');
|
|
|
+ util::success(['list' => [], 'shop' => $shop, 'hint' => 'no bookSn']);
|
|
|
}
|
|
|
}
|
|
|
$where['bookSn'] = $bookSn;
|
|
|
@@ -81,7 +82,6 @@ class StatBookController extends BaseController
|
|
|
$list[$key]['remainStockNum'] = $remainNum;
|
|
|
}
|
|
|
}
|
|
|
- $shop = $this->shop;
|
|
|
util::success(['list' => $list, 'shop' => $shop]);
|
|
|
}
|
|
|
|