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 @@
})
</script>
<!-- 构建的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>
</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 = {
}
}
],
"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,11 +302,15 @@ export class BalalaScene extends Module {
this.onGameOver()
} else {
const {
success
success,
data
} = await sendWebNet(WebNetName.pause, {
startId: getWebData(WebNetName.start).data.startId
})
success && showPanel(RescurrectionModal, {
if (success) {
ExtraConfig.RescurrectionText = data.reviveContent
ExtraConfig.PreviewImg = data.reviveImg
showPanel(RescurrectionModal, {
onGiveUp: () => {
this.onGameOver()
},
......@@ -316,6 +320,7 @@ export class BalalaScene extends Module {
})
}
}
}
@PromiseAwait
async onGameOver() {
......
......@@ -5,6 +5,7 @@ import { ProgressBarS } from "../../common/ProgressBarS";
import UI from "../../tools/UI";
import { IndexScene } from '../IndexScene/IndexScene';
import { sendWebNet, WebNetName } from '../../tools/WebNet';
import { ExtraConfig } from '../ExtraConfig';
export class LoadingScene extends Scene {
......@@ -41,7 +42,11 @@ export class LoadingScene extends Scene {
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)
......
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