shish 6 лет назад
Родитель
Сommit
1be0334784

+ 4 - 4
app/client/controllers/MainController.php

@@ -14,14 +14,14 @@ class MainController extends BaseController
 	public function actionIndex()
 	{
 		$ad = [
-			['adImg' => 'http://img.fjglhs.com/images/glhs/glhs_banner1.jpg', 'url' => 'http://www.baidu.com'],
-			['adImg' => 'http://img.fjglhs.com/images/glhs/glhs_banner2.jpg', 'url' => 'http://www.baidu.com'],
-			['adImg' => 'http://img.fjglhs.com/images/glhs/glhs_banner3.jpg', 'url' => 'http://www.baidu.com'],
+			['adImg' => 'http://img.fjglhs.com/images/glhs/glhs_banner1.jpg', 'url' => ''],
+			['adImg' => 'http://img.fjglhs.com/images/glhs/glhs_banner2.jpg', 'url' => ''],
+			['adImg' => 'http://img.fjglhs.com/images/glhs/glhs_banner3.jpg', 'url' => ''],
 		];
 		$category = CategoryService::getTopThreeCategory($this->merchantId);
 		$categoryList = !empty($category) ? GoodsCategoryService::getAppointCategoryList($category) : [];
 		$data = ['ad' => $ad, 'category' => $categoryList, 'columnStyle' => rand(1, 2)];
 		util::success($data);
 	}
-	
+
 }

+ 0 - 3
app/client/controllers/WxShareController.php

@@ -12,9 +12,6 @@ class WxShareController extends BaseController
 	//取微信分享的参数 shish 2020.2.22
 	public function actionGetParams()
 	{
-		if ($this->isWx) {
-			util::fail('不是微信环境');
-		}
 		$url = Yii::$app->request->post('url');
 		$jsSDK = new jsSDK();//微信分享
 		$merchant = $this->merchant;