|
@@ -9,17 +9,19 @@ function toChannelIndex(index, callback) {
|
|
|
const route_util = require('../route_util');
|
|
|
const route_constant = require('../route_constant');
|
|
|
var isLogin = pages[0].getIsLogin();
|
|
|
- console.log("gadfqwwerqewrqr==11==" + isLogin);
|
|
|
+ console.log("gadsfadsfadsfa==222==");
|
|
|
if (!isLogin) {
|
|
|
route_util.jump(route_constant.login);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ console.log("gadsfadsfadsfa==333==");
|
|
|
var actionIndex = pages[0].getActionIndex();
|
|
|
if (actionIndex != null && index == actionIndex) {
|
|
|
return;
|
|
|
};
|
|
|
|
|
|
+ console.log("gadsfadsfadsfa==444==");
|
|
|
var deviceList = pages[0].getDeviceList();
|
|
|
var deviceListSelect = pages[0].getDeviceListSelect();
|
|
|
if (deviceListSelect === null || deviceList.length <= deviceListSelect) {
|
|
@@ -30,8 +32,10 @@ function toChannelIndex(index, callback) {
|
|
|
return;
|
|
|
};
|
|
|
|
|
|
+ console.log("gadsfadsfadsfa==555==");
|
|
|
callback(index);
|
|
|
|
|
|
+ console.log("gadsfadsfadsfa==666==");
|
|
|
const app = getApp();
|
|
|
const lexin_util = require('../lexin/util');
|
|
|
var channelData = pages[0].getChannelData();
|
|
@@ -59,6 +63,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_7cdfa1fd3af0
|
|
|
var deviceMacId = lexin_util.getDeviceMacId(deviceId);
|
|
|
+ console.log("gadsfadsfadsfa==777==" + deviceMacId);
|
|
|
+ console.log("gadsfadsfadsfa==888==" + JSON.stringify(other));
|
|
|
app.PubMsg({
|
|
|
type: "play",
|
|
|
DstDeviceName: deviceMacId,
|