|
@@ -333,8 +333,9 @@ class StoreOrder extends BaseModel
|
|
|
$payPostage = self::getOrderPriceGroup($cartInfo, $addr)['storePostage'];
|
|
$payPostage = self::getOrderPriceGroup($cartInfo, $addr)['storePostage'];
|
|
|
$payPostageSh = self::getOrderPriceGroup($cartInfo, $addr, $storeId)['storePostageSh'];
|
|
$payPostageSh = self::getOrderPriceGroup($cartInfo, $addr, $storeId)['storePostageSh'];
|
|
|
}
|
|
}
|
|
|
- if (!$userInfo['admin_id'] && ($other['only_store_user'] ?? 0)) {
|
|
|
|
|
- return self::setErrorInfo('不支持采购!', true);
|
|
|
|
|
|
|
+ if (!$userInfo['admin_id']) {
|
|
|
|
|
+ if ($other['only_store_user'] ?? 0)
|
|
|
|
|
+ return self::setErrorInfo('不支持采购!', true);
|
|
|
} else {
|
|
} else {
|
|
|
$ADMIN = SystemAdmin::where('id', $userInfo['admin_id'])->find();
|
|
$ADMIN = SystemAdmin::where('id', $userInfo['admin_id'])->find();
|
|
|
if (!$ADMIN || !$ADMIN['store_id']) {
|
|
if (!$ADMIN || !$ADMIN['store_id']) {
|