shish 2 лет назад
Родитель
Сommit
03e01ba24b
1 измененных файлов с 6 добавлено и 1 удалено
  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