| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace hd\controllers;
- use biz\ghs\classes\GhsClass;
- use biz\product\classes\XjClass;
- use biz\shop\classes\ShopExtClass;
- use common\components\util;
- use Yii;
- class ShopExtController extends BaseController
- {
- public $guestAccess = [];
- //取出供应商的小菊颜色 shish 20210907
- public function actionGetGhsXj()
- {
- $id = Yii::$app->request->get('ghsId', 0);
- $ghs = GhsClass::getById($id, true);
- GhsClass::valid($ghs, $this->shopId);
- $shopId = $ghs->shopId ?? 0;
- $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
- $list = XjClass::getSjXj($ext);
- util::success(['list' => $list]);
- }
- }
|