|
|
@@ -557,19 +557,4 @@ class ProductController extends BaseController
|
|
|
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);
|
|
|
- }
|
|
|
-
|
|
|
}
|