|
|
@@ -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);
|