Commit 950c9fdb authored by unknown's avatar unknown

修复舒尔特某些点击过快返回值为null

parent 4e6372b4
...@@ -260,11 +260,11 @@ export class SchulteCtr extends Component { ...@@ -260,11 +260,11 @@ export class SchulteCtr extends Component {
let sendOutData: GameEndDataItf = { let sendOutData: GameEndDataItf = {
type: "cocos_game", type: "cocos_game",
gameId: this.gameId, gameId: this.gameId,
gameScore: <number><any>(1 / (Math.round((this.gameEndTime - this.beginTime) / 1000) / this.totalTime)).toFixed(4) * 10000, gameScore: Number((1 / (Math.round((this.gameEndTime - this.beginTime) / 1000) / this.totalTime)).toFixed(4)) * 10000,
gameEvaluation: this.getEvaluation(this.gameEndTime - this.beginTime), gameEvaluation: this.getEvaluation(this.gameEndTime - this.beginTime),
durTime: this.gameEndTime - this.beginTime, durTime: this.gameEndTime - this.beginTime,
totalTime: this.gameEndTime - this.beginTime, totalTime: this.gameEndTime - this.beginTime,
finishRate: <number><any>(Math.round((this.gameEndTime - this.beginTime) / 1000) / this.totalTime).toFixed(4) finishRate: Number((Math.round((this.gameEndTime - this.beginTime) / 1000) / this.totalTime).toFixed(4))
} }
htmlSendDataMgr.sendDataOut(JSON.stringify(sendOutData)); htmlSendDataMgr.sendDataOut(JSON.stringify(sendOutData));
//************************** */ //************************** */
......
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