|
@@ -9,29 +9,23 @@ function toChannelIndex(index, callback) {
|
|
|
const route_util = require('../route_util');
|
|
|
const route_constant = require('../route_constant');
|
|
|
var isLogin = pages[0].getIsLogin();
|
|
|
- console.log("gadsfqreqwrqwerqer==111==" + isLogin);
|
|
|
if (!isLogin) {
|
|
|
route_util.jump(route_constant.login);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- console.log("gadsfqreqwrqwerqer==222==" + index);
|
|
|
var actionIndex = pages[0].getActionIndex();
|
|
|
- console.log("gadsfqreqwrqwerqer==33==" + actionIndex);
|
|
|
if (actionIndex == null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- console.log("gadsfqreqwrqwerqer==444==" + index + "==" + actionIndex);
|
|
|
if (index == actionIndex) {
|
|
|
return;
|
|
|
};
|
|
|
|
|
|
var deviceList = pages[0].getDeviceList();
|
|
|
var deviceListSelect = pages[0].getDeviceListSelect();
|
|
|
- console.log("gadsfqreqwrqwerqer==555==");
|
|
|
if (deviceListSelect === null || deviceList.length <= deviceListSelect) {
|
|
|
- console.log("gadsfqreqwrqwerqer==666==");
|
|
|
wx.showToast({
|
|
|
title: '请选择设备',
|
|
|
icon: "none"
|
|
@@ -66,12 +60,8 @@ function toChannelIndex(index, callback) {
|
|
|
};
|
|
|
|
|
|
//other: {"url":"","media_data":"","user_id":1,"timestamp":1734423952,"channel_id":4,"order":"","resource_from":"","songAlbumID":"","version":3,"is_debug":2}
|
|
|
-
|
|
|
- //deviceMacId: AIrSMArT_423060242830
|
|
|
-
|
|
|
+ //deviceMacId: AIrSMArT_7cdfa1fd3af0
|
|
|
var deviceMacId = lexin_util.getDeviceMacId(deviceId);
|
|
|
- console.log("gasdfqwerqwerqr==00=" + JSON.stringify(other));
|
|
|
- console.log("gasdfqwerqwerqr==11=" + deviceMacId);
|
|
|
app.PubMsg({
|
|
|
type: "play",
|
|
|
DstDeviceName: deviceMacId,
|