|
@@ -16,7 +16,7 @@ const androidHost = 'wxs://mqtt.test.radio1964.com:8884'
|
|
|
App({
|
|
|
globalData: {
|
|
|
isRelease: false,
|
|
|
- is_debug: 2, // 1 测试环境 // 2正式环境
|
|
|
+ is_debug: 1, // 1 测试环境 // 2正式环境
|
|
|
baseUrl: env.prod.baseUrl,
|
|
|
|
|
|
userInfo: null,
|
|
@@ -226,6 +226,7 @@ App({
|
|
|
//订阅主题
|
|
|
// err:null
|
|
|
// granted:[{"topic":"/AIrSMArT_861210052355545/status/onoffline","qos":0}]
|
|
|
+ console.log("gadfsqwerqewqrqr==222==" + topic);
|
|
|
that.globalData.client.subscribe(topic, function (err, granted) {
|
|
|
if (!err) {
|
|
|
if (callback) {
|
|
@@ -287,6 +288,7 @@ App({
|
|
|
var publish = `/${DstDeviceName}/user/sub_control`;
|
|
|
// {"type":"get_dev_info","DstDeviceName":"AIrSMArT_7cdfa1fd3af0","SrcDeviceName":"ALY_933625"}
|
|
|
var dataString = `${JSON.stringify(data)}`;
|
|
|
+ console.log("gadfsqwerqewqrqr==111==" + dataString);
|
|
|
that.globalData.client.publish(publish, dataString, (err) => {
|
|
|
if (err) {
|
|
|
console.log("发布消息失败");
|