Commit eebf9c4a authored by Master Q's avatar Master Q

添加 复活配置项

parent 48c4bca0
{ {
"success": true "success": true,
"data": {
"reviveContent": "123123123123",
"reviveImg": "http://qnpic.top/yoona2.jpg"
}
} }
\ No newline at end of file
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
}) })
</script> </script>
<!-- 构建的js --> <!-- 构建的js -->
<script src="//yun.duiba.com.cn/db_games/activity/template/1655704446/output.js" crossorigin="anonymous"></script> <script src="//yun.duiba.com.cn/db_games/activity/template/1655707657/output.js" crossorigin="anonymous"></script>
</body> </body>
</html> </html>
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -621,5 +621,5 @@ export const ResJson = { ...@@ -621,5 +621,5 @@ export const ResJson = {
} }
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1655704434/resource/" "path": "https://yun.duiba.com.cn/db_games/activity/template/1655707644/resource/"
} }
\ No newline at end of file
...@@ -302,18 +302,23 @@ export class BalalaScene extends Module { ...@@ -302,18 +302,23 @@ export class BalalaScene extends Module {
this.onGameOver() this.onGameOver()
} else { } else {
const { const {
success success,
data
} = await sendWebNet(WebNetName.pause, { } = await sendWebNet(WebNetName.pause, {
startId: getWebData(WebNetName.start).data.startId startId: getWebData(WebNetName.start).data.startId
}) })
success && showPanel(RescurrectionModal, { if (success) {
onGiveUp: () => { ExtraConfig.RescurrectionText = data.reviveContent
this.onGameOver() ExtraConfig.PreviewImg = data.reviveImg
}, showPanel(RescurrectionModal, {
onResurrection: () => { onGiveUp: () => {
this.onResurrectionForResume() this.onGameOver()
} },
}) onResurrection: () => {
this.onResurrectionForResume()
}
})
}
} }
} }
......
...@@ -5,6 +5,7 @@ import { ProgressBarS } from "../../common/ProgressBarS"; ...@@ -5,6 +5,7 @@ import { ProgressBarS } from "../../common/ProgressBarS";
import UI from "../../tools/UI"; import UI from "../../tools/UI";
import { IndexScene } from '../IndexScene/IndexScene'; import { IndexScene } from '../IndexScene/IndexScene';
import { sendWebNet, WebNetName } from '../../tools/WebNet'; import { sendWebNet, WebNetName } from '../../tools/WebNet';
import { ExtraConfig } from '../ExtraConfig';
export class LoadingScene extends Scene { export class LoadingScene extends Scene {
...@@ -41,7 +42,11 @@ export class LoadingScene extends Scene { ...@@ -41,7 +42,11 @@ export class LoadingScene extends Scene {
await RES.loadGroup('IndexScene') await RES.loadGroup('IndexScene')
// 走下接口,这里有点小问题, 接口报错了, 还让进去吗 // 走下接口,这里有点小问题, 接口报错了, 还让进去吗
await sendWebNet(WebNetName.index, {}, undefined, true) const {
data: cdata,
success
} = await sendWebNet(WebNetName.index, {}, undefined, true)
if (success) ExtraConfig.CountDownTime = cdata.gameTimeLimit
await sendWebNet(WebNetName.projectRule) await sendWebNet(WebNetName.projectRule)
......
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