shish %!s(int64=6) %!d(string=hai) anos
pai
achega
a9b54c728a

+ 5 - 0
app/client/controllers/GoodsController.php

@@ -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);
 	}
 

+ 0 - 1
biz/goods/classes/GoodsClass.php

@@ -40,7 +40,6 @@ class GoodsClass extends BaseClass
 			$id = $val['id'];
 			//大中小图片转化
 			$val = business::formatGoodsImg($val);
-			$val['commonIntro'] = '配送相应说明';
 			//免费配送范围
 			$val['freeSendDist'] = 5;
 			//多款式