shish 6 лет назад
Родитель
Сommit
d92b3a38ef
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      app/business/controllers/TestController.php

+ 5 - 1
app/business/controllers/TestController.php

@@ -76,7 +76,11 @@ class TestController extends BaseController
 	
 	public function actionFocus()
 	{
-		$merchant = MerchantService::getByCondition(['merchantName' => '花卉宝']);
+		$name = '花卉宝';
+		if(getenv('YII_ENV') == 'dev'){
+			$name = '花美灵';
+		}
+		$merchant = MerchantService::getByCondition(['merchantName' => $name]);
 		$list = weixinUtil::getSubscribeUserList($merchant);
 		dd($list);
 	}