|
|
@@ -575,15 +575,15 @@ class PurchaseController extends BaseController
|
|
|
//同城发货包装费和运费的计算
|
|
|
$sendCost = 0;
|
|
|
$sendDistance = 0;
|
|
|
-
|
|
|
- $mapSet = ShopClass::hasIntraCity($this->shop);
|
|
|
+ //特别注意,这边取供货商的shop信息
|
|
|
+ $mapSet = ShopClass::hasIntraCity($ghsShopInfo);
|
|
|
$openIntraCity = $mapSet['openIntraCity'] ?? 0;
|
|
|
if ($sendType == dict::getDict('sendType', 'thirdSend')) {
|
|
|
if ($openIntraCity == 2) {
|
|
|
util::fail('不能使用跑腿');
|
|
|
}
|
|
|
if ($openIntraCity == 1) {
|
|
|
- // 生成随机订单号
|
|
|
+ // 生成随机订单号,不要跟原来的混起来,跑腿-销售单-
|
|
|
$prefix = 'PT-XSD-' . $this->mainId . '-';
|
|
|
$orderSn = $prefix . round(microtime(true) * 1000);
|
|
|
|