isPassThrough

dev_forum
hjm 6 years ago
parent 7fd82dce44
commit d0ede265c6

@ -397,7 +397,12 @@ pop_box_new(htmlvalue, 480, 182);
let game = resData.game; let game = resData.game;
game.prev_game = resData.prev_game; game.prev_game = resData.prev_game;
game.next_game = resData.next_game; game.next_game = resData.next_game;
if (game.status == 2) {
// 已通关
game.isPassThrough = true
}
resData.game = game; resData.game = game;
const { tpm_cases_modified, tpm_modified, tpm_script_modified, myshixun } = resData; const { tpm_cases_modified, tpm_modified, tpm_script_modified, myshixun } = resData;
if (myshixun.system_tip) { if (myshixun.system_tip) {
@ -576,6 +581,7 @@ pop_box_new(htmlvalue, 480, 182);
let currentGamePassed = false let currentGamePassed = false
if (challenge_chooses_count === choose_correct_num) { if (challenge_chooses_count === choose_correct_num) {
game.status = 2; game.status = 2;
game.isPassThrough = true
game.next_game = next_game; game.next_game = next_game;
currentGamePassed = true; currentGamePassed = true;
@ -728,6 +734,7 @@ pop_box_new(htmlvalue, 480, 182);
compileSuccess && this.language_display(response); compileSuccess && this.language_display(response);
if (currentGamePassed) { if (currentGamePassed) {
game.status = 2; game.status = 2;
game.isPassThrough = true
game.next_game = next_game; game.next_game = next_game;
} else { } else {
this.showDialog({ this.showDialog({

@ -152,7 +152,7 @@ class TaskResultLayer extends Component {
this.goNext = false; this.goNext = false;
return <Redirect push to={`/tasks/${next_game}`} />; return <Redirect push to={`/tasks/${next_game}`} />;
} }
if (shixun.status <= 1) { // 模拟实战 if (shixun.status <= 1 || game.isPassThrough == true) { // 模拟实战
game.star = 8; // 跳过评星 game.star = 8; // 跳过评星
} }

Loading…
Cancel
Save