shish hace 1 año
padre
commit
6988be4035
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      app-mall/controllers/OrderController.php

+ 4 - 0
app-mall/controllers/OrderController.php

@@ -566,6 +566,10 @@ class OrderController extends BaseController
         $post = Yii::$app->request->post();
         $payWay = isset($post['payWay']) ? $post['payWay'] : 0;
         $shopId = $this->shopId;
+        $shop = $this->shop;
+        if (empty($shop)) {
+            util::fail('没有门店信息');
+        }
 
         $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
         $gatheringItem = !empty($ext) ? $ext->gatheringItem : 0;