shish 11 months ago
parent
commit
6481fd67cc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app-mall/controllers/OrderController.php

+ 2 - 2
app-mall/controllers/OrderController.php

@@ -162,7 +162,7 @@ class OrderController extends BaseController
         $post = Yii::$app->request->post();
         $post['sjId'] = $this->sjId;
         $post['shopId'] = $this->shopId;
-        $post['payWay'] = $this->isWx == true ? 0 : 1;
+        $post['payWay'] = 0;
         $post['mainId'] = $this->mainId ?? 0;
         $post['userId'] = $this->userId ?? 0;
 
@@ -321,7 +321,7 @@ class OrderController extends BaseController
                 $showAddress = $post['showAddress'] ?? '';
                 $userAddress = $city . $dist . $address . "({$showAddress})";
                 $main = $this->main;
-
+                $shop = $this->shop;
                 $shopLat = $shop->lat ?? '';
                 $shopLong = $shop->long ?? '';
                 if (empty($shopLat) || empty($shopLong)) {