|
@@ -48,7 +48,7 @@ export default class HttpCommand {
|
|
|
connectTest(callback) {
|
|
connectTest(callback) {
|
|
|
GameController.commonData.ranKey = Utils.randomString()
|
|
GameController.commonData.ranKey = Utils.randomString()
|
|
|
let data = {
|
|
let data = {
|
|
|
- "mac": "a5:65:e2:1c:b0:94,f6:60:e4:1a:b7:27",//94//26
|
|
|
|
|
|
|
+ "mac": "a5:65:e2:1c:b0:26,f6:60:e4:1a:b7:27",
|
|
|
"psk": GameController.commonData.ranKey,
|
|
"psk": GameController.commonData.ranKey,
|
|
|
"appId": GameController.commonData.appid
|
|
"appId": GameController.commonData.appid
|
|
|
}
|
|
}
|
|
@@ -155,6 +155,21 @@ export default class HttpCommand {
|
|
|
};
|
|
};
|
|
|
this.sendData(HTTPTYPE.getInitGeneral, data, callback);
|
|
this.sendData(HTTPTYPE.getInitGeneral, data, callback);
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 初始化获取武将
|
|
|
|
|
+ * @param callback
|
|
|
|
|
+ * @param id 武将id
|
|
|
|
|
+ * @param type 类型 10武将 11碎片
|
|
|
|
|
+ * @param num 数量
|
|
|
|
|
+ */
|
|
|
|
|
+ getInitGeneralDemo(callback, id, type, num) {
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ id: id,
|
|
|
|
|
+ type: type,
|
|
|
|
|
+ num: num
|
|
|
|
|
+ };
|
|
|
|
|
+ this.sendData(HTTPTYPE.getInitGeneralDemo, data, callback);
|
|
|
|
|
+ }
|
|
|
/** 获取任务数据 */
|
|
/** 获取任务数据 */
|
|
|
getTaskInfo(callback) {
|
|
getTaskInfo(callback) {
|
|
|
this.sendData(HTTPTYPE.task_data, 'POST', callback);
|
|
this.sendData(HTTPTYPE.task_data, 'POST', callback);
|
|
@@ -226,7 +241,7 @@ export default class HttpCommand {
|
|
|
let data = {
|
|
let data = {
|
|
|
playPropList: arr
|
|
playPropList: arr
|
|
|
};
|
|
};
|
|
|
- this.sendData(HTTPTYPE.updateProp, data, callback);
|
|
|
|
|
|
|
+ // this.sendData(HTTPTYPE.updateProp, data, callback);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -265,7 +280,7 @@ export default class HttpCommand {
|
|
|
max: max,
|
|
max: max,
|
|
|
last: last
|
|
last: last
|
|
|
};
|
|
};
|
|
|
- this.sendData(HTTPTYPE.updateMission, data, callback);
|
|
|
|
|
|
|
+ // this.sendData(HTTPTYPE.updateMission, data, callback);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
addGeneralExp(callback) {
|
|
addGeneralExp(callback) {
|
|
@@ -291,6 +306,18 @@ export default class HttpCommand {
|
|
|
this.httpM.sendRequest(HTTPTYPE.addItem, 'POST', str, callback);
|
|
this.httpM.sendRequest(HTTPTYPE.addItem, 'POST', str, callback);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //--------------------------ZNH------------------------
|
|
|
|
|
+
|
|
|
|
|
+ /** 武将许愿
|
|
|
|
|
+ * @param callback 回调
|
|
|
|
|
+ */
|
|
|
|
|
+ prayGeneral(callback,data) {
|
|
|
|
|
+ this.sendData(HTTPTYPE.prayGeneral, data, callback);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //--------------------------ZNH------------------------
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 获取邀请人uin
|
|
* 获取邀请人uin
|
|
|
* @param sendReport
|
|
* @param sendReport
|
|
@@ -391,6 +418,7 @@ export enum HTTPTYPE {
|
|
|
barracksLvUp = 'barracksLvUp',
|
|
barracksLvUp = 'barracksLvUp',
|
|
|
addItem = 'addItem',
|
|
addItem = 'addItem',
|
|
|
getInitGeneral = 'general/getInitGeneral',
|
|
getInitGeneral = 'general/getInitGeneral',
|
|
|
|
|
+ getInitGeneralDemo = 'general/getInitGeneralDemo',
|
|
|
/** 投资数据 */
|
|
/** 投资数据 */
|
|
|
getInvestInfo = 'invest/getInvestInfo',
|
|
getInvestInfo = 'invest/getInvestInfo',
|
|
|
/** 更新投资数据 */
|
|
/** 更新投资数据 */
|
|
@@ -399,6 +427,9 @@ export enum HTTPTYPE {
|
|
|
reduceTimeInvestProject = 'invest/reduceTimeInvestProject',
|
|
reduceTimeInvestProject = 'invest/reduceTimeInvestProject',
|
|
|
|
|
|
|
|
updateADLog = 'updateADLog',
|
|
updateADLog = 'updateADLog',
|
|
|
|
|
+ // ZNH
|
|
|
|
|
+ /** 武将许愿*/
|
|
|
|
|
+ prayGeneral = 'general/prayGeneral',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -408,6 +439,6 @@ export interface UpdatePlayerProps {
|
|
|
proptype: number, //需要更新的属性
|
|
proptype: number, //需要更新的属性
|
|
|
propvalue: number, //更新后的属性
|
|
propvalue: number, //更新后的属性
|
|
|
|
|
|
|
|
- propType:number,//服务器不根据文档改字段名字,仅用于发送给服务器
|
|
|
|
|
- propValue:number,//服务器不根据文档改字段名字,仅用于发送给服务器
|
|
|
|
|
|
|
+ propType: number,//服务器不根据文档改字段名字,仅用于发送给服务器
|
|
|
|
|
+ propValue: number,//服务器不根据文档改字段名字,仅用于发送给服务器
|
|
|
}
|
|
}
|