Browse Source

增加数量和门店

shish 4 years ago
parent
commit
8e92375ff5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      biz-ghs/order/classes/OrderClearClass.php

+ 6 - 0
biz-ghs/order/classes/OrderClearClass.php

@@ -67,6 +67,10 @@ class OrderClearClass extends BaseClass
         if (empty($ghs)) {
             util::fail('没有找到供应商');
         }
+        $ghsShopId = $ghs['shopId'] ?? 0;
+        $ghsShop = ShopClass::getById($ghsShopId, true);
+        $ghsShopName = $ghsShop->shopName ?? '';
+        $ghsShopName = $ghsShopName == '首店' ? '总店' : $ghsShopName;
 
         $orderSn = orderSn::getPurchaseClearSn();
         $payWay = isset($post['payWay']) && is_numeric($post['payWay']) ? $post['payWay'] : dict::getDict('payWay', 'unPay');
@@ -97,6 +101,8 @@ class OrderClearClass extends BaseClass
             'deadline' => date("Y-m-d H:i:s", time() + 10 * 60 * 60),
             'purchaseIds' => $purchaseString,
             'payWay' => $payWay,
+            'num' => count($ids),
+            'ghsShopName' => $ghsShopName,
         ];
         if ($modifyPrice < $amount) {
             $clearData['discountAmount'] = bcsub($amount, $modifyPrice, 2);