|
|
@@ -5,6 +5,7 @@ namespace client\controllers;
|
|
|
use biz\goods\services\CategoryService;
|
|
|
use biz\goods\services\GoodsCategoryService;
|
|
|
use biz\goods\services\GoodsService;
|
|
|
+use biz\goods\services\GoodsSettingService;
|
|
|
use Yii;
|
|
|
use yii\web\Controller;
|
|
|
use common\components\util;
|
|
|
@@ -17,6 +18,10 @@ class GoodsController extends BaseController
|
|
|
{
|
|
|
$id = Yii::$app->request->get('id', 0);
|
|
|
$info = GoodsService::getGoodsInfo($id);
|
|
|
+ GoodsService::valid($info, $this->merchantId);
|
|
|
+ $setting = GoodsSettingService::getByCondition(['merchantId' => $this->merchantId]);
|
|
|
+ $commonIntro = isset($setting['goodsIntroduce']) ? $setting['goodsIntroduce'] : '';
|
|
|
+ $info['commonIntro'] = $commonIntro;
|
|
|
util::success($info);
|
|
|
}
|
|
|
|