|
@@ -7,6 +7,7 @@
|
|
|
namespace ghs\controllers;
|
|
namespace ghs\controllers;
|
|
|
|
|
|
|
|
use biz\admin\classes\AdminRoleClass;
|
|
use biz\admin\classes\AdminRoleClass;
|
|
|
|
|
+use biz\ghs\classes\GhsClass;
|
|
|
use bizGhs\item\classes\ItemClassClass;
|
|
use bizGhs\item\classes\ItemClassClass;
|
|
|
use bizGhs\merchant\classes\ShopClass;
|
|
use bizGhs\merchant\classes\ShopClass;
|
|
|
use bizGhs\product\classes\ProductClass;
|
|
use bizGhs\product\classes\ProductClass;
|
|
@@ -556,4 +557,19 @@ class ProductController extends BaseController
|
|
|
util::complete();
|
|
util::complete();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //供应商产品的详情 shish 20210903
|
|
|
|
|
+ public function actionGhsProductDetail()
|
|
|
|
|
+ {
|
|
|
|
|
+ $id = Yii::$app->request->get('id', 0);
|
|
|
|
|
+ $ghsId = Yii::$app->request->get('ghsId', 0);
|
|
|
|
|
+ $ghs = GhsClass::getById($ghsId, true);
|
|
|
|
|
+ GhsClass::valid($ghs, $this->shopId);
|
|
|
|
|
+ $shopId = $ghs->shopId ?? 0;
|
|
|
|
|
+ $product = ProductClass::getItemInfo($id);
|
|
|
|
|
+ if (isset($product['shopId']) == false || $product['shopId'] != $shopId) {
|
|
|
|
|
+ util::fail('没有权限访问');
|
|
|
|
|
+ }
|
|
|
|
|
+ util::success($product);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|