shish пре 2 година
родитељ
комит
455337b881
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      app-hd/controllers/PurchaseController.php

+ 6 - 0
app-hd/controllers/PurchaseController.php

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