Commit 74f641fb authored by 邱旭's avatar 邱旭

1

parent b2e95b2d
{
"version": 5,
"files": [
"./turntable/turntable_rulebtn.png",
"./turntable/turnable_icon2.png",
"./turntable/turnable_icon3.png",
"./turntable/turnable_icon1.png",
"./turntable/turntable_bg.png",
"./turntable/turntable_startbtn.png",
"./turntable/turntable_panel.png"
],
"projectName": "turntable",
"options": {
"layoutMath": "3",
"sizeMode": "free",
"useExtension": 0,
"layoutGap": 1,
"extend": 0
}
}
\ No newline at end of file
...@@ -462,8 +462,9 @@ export class NetManager extends ABNetManager { ...@@ -462,8 +462,9 @@ export class NetManager extends ABNetManager {
* @param score 关卡 * @param score 关卡
* @param gameData json带分数和通关元素 * @param gameData json带分数和通关元素
* @param submitToken token,来自getNgameStartStatus,,DataManager.ins.getData("getNgameStartStatus").data.submitToken * @param submitToken token,来自getNgameStartStatus,,DataManager.ins.getData("getNgameStartStatus").data.submitToken
* @param relatedTaskType 苏宁-消消乐v3.1,关联任务类型:1:鲸喜任务;2:农场任务
*/ */
hc_submit(callback: Function, orderId: number, score: number, gameData: string, submitToken: string): void { hc_submit(callback: Function, orderId: number, score: number, gameData: string, submitToken: string, relatedTaskType): void {
const sign = this.createSgin(orderId, score, gameData, submitToken); const sign = this.createSgin(orderId, score, gameData, submitToken);
var data = { var data = {
activityId: DataManager.ins.customCfgData.actId, activityId: DataManager.ins.customCfgData.actId,
...@@ -473,7 +474,10 @@ export class NetManager extends ABNetManager { ...@@ -473,7 +474,10 @@ export class NetManager extends ABNetManager {
dynamicData: JSON.stringify([]), dynamicData: JSON.stringify([]),
detect: window['detect'], detect: window['detect'],
deviceSessionId: window['_device_session_id'], deviceSessionId: window['_device_session_id'],
score: score, score: score
};
if(relatedTaskType) {
data['relatedTaskType'] = relatedTaskType;
} }
var sgin = this.encrypt(JSON.stringify(data)); var sgin = this.encrypt(JSON.stringify(data));
const net: INetData = { const net: INetData = {
......
...@@ -67,6 +67,7 @@ import { FestivalTarget } from '../something/uis/FestivalTarget'; ...@@ -67,6 +67,7 @@ import { FestivalTarget } from '../something/uis/FestivalTarget';
import getRedBombAward, { getRedBombTimes } from '../getRedBombAward'; import getRedBombAward, { getRedBombTimes } from '../getRedBombAward';
import { FesRedBombShowAni } from '../something/anisCall/FesRedBombShowAni'; import { FesRedBombShowAni } from '../something/anisCall/FesRedBombShowAni';
import { RectsWaveAni } from '../something/anisCall/RectsWaveAni'; import { RectsWaveAni } from '../something/anisCall/RectsWaveAni';
import Utils from "../Utils";
const aniClass = { const aniClass = {
"BoomAni": BoomAni, "BoomAni": BoomAni,
...@@ -2563,6 +2564,7 @@ export default class MainScene extends Scene { ...@@ -2563,6 +2564,7 @@ export default class MainScene extends Scene {
} catch (error) { } catch (error) {
console.warn(error) console.warn(error)
} }
let taskType = Utils.getRequestByKey('taskType');
NetManager.ins.hc_submit((s, data) => { NetManager.ins.hc_submit((s, data) => {
if (s) { if (s) {
wait(200).then(() => { wait(200).then(() => {
...@@ -2605,7 +2607,8 @@ export default class MainScene extends Scene { ...@@ -2605,7 +2607,8 @@ export default class MainScene extends Scene {
DataManager.ins.getData("hc_doJoin").data, DataManager.ins.getData("hc_doJoin").data,
this.chapter, this.chapter,
json, json,
DataManager.ins.getData("getNgameStartStatus").data.submitToken) DataManager.ins.getData("getNgameStartStatus").data.submitToken, taskType
)
} }
/** /**
......
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