|
|
@@ -63,6 +63,12 @@ class PurchaseController extends BaseController
|
|
|
util::fail('无法访问');
|
|
|
}
|
|
|
$orderSn = $info['orderSn'] ?? '';
|
|
|
+ $ghsId = $info['ghsId'] ?? 0;
|
|
|
+ $info['ghsShopId'] = 0;
|
|
|
+ if (!empty($ghsId)) {
|
|
|
+ $ghs = GhsClass::getById($ghsId, true);
|
|
|
+ $info['ghsShopId'] = $ghs->shopId ?? 0;
|
|
|
+ }
|
|
|
$list = PurchaseItemClass::getAllByCondition(['orderSn' => $orderSn], null, '*');
|
|
|
if (!empty($list)) {
|
|
|
foreach ($list as $key => $item) {
|