|
|
@@ -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()
|
|
|
{
|