Commit 7bc95486 authored by wildfirecode's avatar wildfirecode

1

parent 9adc5954
import { IDynamicData } from "../../tw/data/game/datapash/IDynamicData";
import { NetManager } from "../../tw/manager/NetManager";
import { DataManager } from "../../tw/manager/DataManager";
import { NetName } from "../../tw/enum/NetName";
/**
* 提交游戏成绩
......@@ -45,9 +46,11 @@ const gameSubmitData = (callback: Function, score: number, allDynamics: IDynamic
* @param orderId
*/
const getOrderStatus = (callback: Function, orderId: number) => {
NetManager.ins.getOrderStatus(callback, orderId, () => {
return DataManager.ins.getCustomOrderStatusData.code == 'C000000001';
});
NetManager.ins.getPlugOrderStatus(() => { }, orderId,
() => { DataManager.ins.getData(NetName.PLUG_ORDER_STATUS).result == 0 });
// NetManager.ins.getOrderStatus(callback, orderId, () => {
// return DataManager.ins.getCustomOrderStatusData.code == 'C000000001';
// });
}
export default submit;
\ No newline at end of file
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