shish 6 jaren geleden
bovenliggende
commit
88cd19bf57
1 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. 6 3
      console/controllers/InitController.php

+ 6 - 3
console/controllers/InitController.php

@@ -23,11 +23,14 @@ class InitController extends Controller
 {
 
 	//开店初始化 shish 2020.2.8
-	public function actionOpenShopInit()
+	public function actionRabbit()
 	{
-		MerchantService::openShopInit(['merchantId' => 12362, 'platform' => 1]);
+		$data = ['merchantId' => 12362];
+		$producer = Yii::$app->rabbitmq->getProducer('openShopInitProducer');
+		$msg = serialize($data);
+		$producer->publish($msg, 'openShopInitExchange', 'openShopInitRoute');
 	}
-	
+
 	//哪些东西开店时需要初始化!!!!!
 	public function actionFirstInit()
 	{