shish il y a 2 ans
Parent
commit
03e01ba24b
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      app-hd/controllers/GhsController.php

+ 6 - 1
app-hd/controllers/GhsController.php

@@ -40,7 +40,12 @@ class GhsController extends BaseController
         if ($ghs->salt != $salt) {
             util::fail('不是您的供货商');
         }
-        util::success(['info' => $ghs]);
+        $customId = $ghs->customId ?? 0;
+        $custom = CustomClass::getById($customId, true);
+        if (empty($custom)) {
+            util::fail('供货商信息不完整');
+        }
+        util::success(['ghs' => $ghs, 'custom' => $custom]);
     }
 
     //获取物流列表 ssh 20230608