|
|
@@ -681,7 +681,7 @@ class CustomController extends BaseController
|
|
|
$producer = Yii::$app->rabbitmq->getProducer('customProducer');
|
|
|
$msg = serialize(['type' => 'add_custom', 'name' => $name, 'mobile' => $mobile, 'sjId' => $this->sjId,
|
|
|
'shopId' => $this->shop->id, 'sjName' => $this->sj->name, 'staffId' => $this->shopAdminId]);
|
|
|
- $producer->publish($msg, 'customExchange', 'customRoute');
|
|
|
+ $producer->publish($msg, 'customExchange', 'customRoute',['delivery_mode' => 2, 'content_type' => 'application/octet-stream']);
|
|
|
} catch (\Exception $e) {
|
|
|
$msg = $e->getMessage();
|
|
|
$remind = "供货商创建新客户,生产消息报错 {$name} {$mobile} {$this->sj->name} {$msg}";
|
|
|
@@ -730,7 +730,7 @@ class CustomController extends BaseController
|
|
|
try {
|
|
|
$producer = Yii::$app->rabbitmq->getProducer('customProducer');
|
|
|
$msg = serialize(['type' => 'pull_custom_from_other_shop', 'toShopId' => $toShopId, 'fromShopId' => $fromShopId]);
|
|
|
- $producer->publish($msg, 'customExchange', 'customRoute');
|
|
|
+ $producer->publish($msg, 'customExchange', 'customRoute',['delivery_mode' => 2, 'content_type' => 'application/octet-stream']);
|
|
|
} catch (\Exception $e) {
|
|
|
$msg = $e->getMessage();
|
|
|
$remind = "供货商拉取其他门店客户,生产消息报错 {$toShopId} {$fromShopId} {$msg}";
|