Commit c50e214a authored by 杨思琦's avatar 杨思琦

fix: 消息新增转发

parent a78f7ba0
......@@ -188,9 +188,10 @@ class Notifier {
const userName = USERNAME;
const password = PASSWORD;
const path = this._siteConfig.mqtt_path;
const siteCode = this._siteConfig.site_code ?? '';
this.MQTTCount = 0;
if (hostname) {
this.MQTTClient = new MqttClient.Client(hostname, port, path, clientId);
this.MQTTClient = new MqttClient.Client(hostname, port, `${path}?_site=${siteCode}`, clientId);
this.MQTTOptions = {
invocationContext: {
host: hostname,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment