|
|
@@ -154,16 +154,16 @@ class WxOpenController extends PublicController
|
|
|
$upData['wxRefreshToken'] = $authorize_refresh_token;
|
|
|
$upData['status'] = 1;//审核通过
|
|
|
xhMerchantService::updateById($id, $upData);
|
|
|
-
|
|
|
+
|
|
|
//还没有完成初始化先进行初始化
|
|
|
$extend = MerchantExtendClass::getByMerchantId($id);
|
|
|
if (isset($extend['init']) && $extend['init'] == 0) {
|
|
|
- $data = ['merchantId' => $merchantId, 'platform' => 1];
|
|
|
+ $data = ['merchantId' => $merchantId];
|
|
|
$producer = Yii::$app->rabbitmq->getProducer('openShopInitProducer');
|
|
|
$msg = serialize($data);
|
|
|
$producer->publish($msg, 'openShopInitExchange', 'openShopInitRoute');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
echo 'ok';
|
|
|
}
|
|
|
|