shish 4 anni fa
parent
commit
2a435e3476
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      app-mall/controllers/OrderController.php

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

@@ -263,7 +263,6 @@ class OrderController extends BaseController
         $post['shopId'] = $shopId;
         $post['sjId'] = $this->sjId;
         $post['store'] = 0;
-        $fromType = dict::getDict('fromType', 'shop');
         $post['customId'] = $this->customId;
         $user = isset($this->user->attributes) ? $this->user->attributes : [];
         $post['bookName'] = isset($user['userName']) ? $user['userName'] : '';
@@ -290,7 +289,7 @@ class OrderController extends BaseController
         //微信支付订单提交不能修改价格
         $post['modPrice'] = $this->isWx ? 0 : 1;
         $post['goodsNum'] = 1;
-        $post['fromType'] = $fromType;
+        $post['fromType'] = $post['fromType'] ?? 1;
         $post['reachDate'] = isset($post['reachDate']) && !empty($post['reachDate']) ? $post['reachDate'] : '00-00-00';
         $post['onlinePay'] = dict::getDict('onlinePay', 'yes');