|
|
@@ -37,13 +37,8 @@ class OrderController extends BaseController
|
|
|
$post = Yii::$app->request->post();
|
|
|
$needSend = isset($post['needSend']) && is_numeric($post['needSend']) ? $post['needSend'] : 1;
|
|
|
$orderType = $post['orderType'] ?? 1;
|
|
|
-
|
|
|
- $defaultShopId = MerchantService::getDefaultShopId($this->sj);
|
|
|
- if (empty($defaultShopId)) {
|
|
|
- util::fail('没有找到门店');
|
|
|
- }
|
|
|
$post['merchantId'] = $this->sjId;
|
|
|
- $post['shopId'] = $defaultShopId;
|
|
|
+ $post['shopId'] = $this->shopId;
|
|
|
$post['payWay'] = $this->isWx == true ? 0 : 1;
|
|
|
$now = time();
|
|
|
$expireTime = $now + 1800;//订单30分钟后过期
|
|
|
@@ -528,7 +523,8 @@ class OrderController extends BaseController
|
|
|
$search = isset($get['search']) ? $get['search'] : '';
|
|
|
$where = [];
|
|
|
$where['shopId'] = $this->shopId;
|
|
|
- if (!empty($get['status'])) {
|
|
|
+ $status = $get['status'] ?? 0;
|
|
|
+ if (!empty($status)) {
|
|
|
$where['status'] = $get['status'];
|
|
|
}
|
|
|
if (!empty($search)) {
|