|
|
@@ -8,6 +8,7 @@ use biz\shop\classes\ShopClass;
|
|
|
use bizGhs\custom\classes\CustomClass;
|
|
|
use bizGhs\custom\classes\CustomLevelClass;
|
|
|
use bizHd\stat\classes\StatVisitClass;
|
|
|
+use common\components\dict;
|
|
|
use common\components\imgUtil;
|
|
|
use common\components\util;
|
|
|
use Yii;
|
|
|
@@ -99,6 +100,12 @@ class GhsController extends BaseController
|
|
|
{
|
|
|
$shopId = Yii::$app->request->get('shopId');
|
|
|
if (isset($this->shopId) && !empty($this->shopId)) {
|
|
|
+
|
|
|
+ $current = ShopClass::getById($shopId, true);
|
|
|
+ if (isset($current->ptStyle) && $current->ptStyle != dict::getDict('ptStyle', 'ghs')) {
|
|
|
+ util::fail('没有找到批发店');
|
|
|
+ }
|
|
|
+
|
|
|
$ghs = GhsClass::build($shopId, $this->shopId);
|
|
|
|
|
|
//是否有充值送红包活动
|