Commit 5bc729c9 authored by 俞嘉婷's avatar 俞嘉婷

游戏接口路径

parent 8fa5466a
...@@ -84,10 +84,10 @@ ...@@ -84,10 +84,10 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。") // alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
} }
</script> </script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1750516076998/assets/index-BCxNrL6_.js"></script> <script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1750516818753/assets/index-BbVLN6U7.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750516076998/assets/vendor-CeEDoc5y.js"> <link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750516818753/assets/vendor-CIBsSgjF.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750516076998/assets/vendor-DhjHFO43.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750516818753/assets/vendor-DhjHFO43.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750516076998/assets/index-CV27T-rL.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750516818753/assets/index-DWKwfnt-.css">
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script> <script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script> <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head> </head>
...@@ -96,8 +96,8 @@ ...@@ -96,8 +96,8 @@
<div id="root"></div> <div id="root"></div>
<!-- <script src="https://yun.duiba.com.cn/db_games/RB_yanxue/250620/js/output.js"></script> --> <!-- <script src="https://yun.duiba.com.cn/db_games/RB_yanxue/250620/js/output.js"></script> -->
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script> <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1750516076998/assets/polyfills-legacy-C2MhNPfJ.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1750516818753/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1750516076998/assets/index-legacy-D1oArEMO.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script> <script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1750516818753/assets/index-legacy-D3AW57Ac.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -2,7 +2,7 @@ import { AESEncrypt } from "./Crypto"; ...@@ -2,7 +2,7 @@ import { AESEncrypt } from "./Crypto";
export default [ export default [
{ {
url: '/game/start.do', url: '/game/startGame.do',
response: ({ query }) => { response: ({ query }) => {
return { return {
code: "123", code: "123",
...@@ -21,7 +21,7 @@ export default [ ...@@ -21,7 +21,7 @@ export default [
}, },
}, },
{ {
url: '/game/submit.do', url: '/game/submitGame.do',
response: ({ query }) => { response: ({ query }) => {
return { return {
"success": true, "success": true,
......
...@@ -146,11 +146,13 @@ const API = generateAPI({ ...@@ -146,11 +146,13 @@ const API = generateAPI({
////////////////////////////// Game ////////////////////////////// ////////////////////////////// Game //////////////////////////////
start: { start: {
uri: `game/start.do`, uri: `game/startGame.do`,
method: "post",
withToken: true, withToken: true,
}, },
submit: { submit: {
uri: `game/submit.do`, uri: `game/submitGame.do`,
method: "post",
withToken: true, withToken: true,
}, },
......
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