Commit 3c07a5e8 authored by haiyoucuv's avatar haiyoucuv

整理一下代码1

parent 28146cf1
...@@ -244,7 +244,6 @@ export class MainGame extends Scene { ...@@ -244,7 +244,6 @@ export class MainGame extends Scene {
} }
onLoad() { onLoad() {
this.schedule(this.uploadScreenshot, 10);
PhysicsSystem.instance.enable = true; PhysicsSystem.instance.enable = true;
// PhysicsSystem.instance.debugDrawFlags // PhysicsSystem.instance.debugDrawFlags
// = EPhysicsDrawFlags.AABB // = EPhysicsDrawFlags.AABB
...@@ -335,6 +334,9 @@ export class MainGame extends Scene { ...@@ -335,6 +334,9 @@ export class MainGame extends Scene {
this.isGuide = false; this.isGuide = false;
this.startPre(); this.startPre();
this.scheduleOnce(this.uploadScreenshot, 1);
this.schedule(this.uploadScreenshot, 10);
} }
async guide1() { async guide1() {
......
...@@ -82,6 +82,11 @@ export function ajax(options: ajaxParameterInt) { ...@@ -82,6 +82,11 @@ export function ajax(options: ajaxParameterInt) {
xhr.setRequestHeader(key, options.headers[key]); xhr.setRequestHeader(key, options.headers[key]);
} }
} }
if(options.headers["Content-Type"] == "application/json"){
params = JSON.stringify(params);
}
/** /**
* 发送请求参数 * 发送请求参数
*/ */
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<script src="//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js" crossorigin="anonymous"></script> <script src="//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js" crossorigin="anonymous"></script>
<script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script> <script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724137628569/style.css"/> <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138342890/style.css"/>
<style> <style>
.sui-captcha { .sui-captcha {
...@@ -99,16 +99,16 @@ ...@@ -99,16 +99,16 @@
</script> </script>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724137628569/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138342890/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724137628569/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138342890/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724137628569/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138342890/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1724137628569/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138342890/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
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