Commit 147a9776 authored by haiyoucuv's avatar haiyoucuv

改免登sb

parent b78776e8
import mobx from "mobx"; import mobx from "mobx";
import { assetManager, ImageAsset, SpriteFrame, Texture2D } from "cc"; import { assetManager, ImageAsset, SpriteFrame, Texture2D } from "cc";
import { getUrlParams } from "../Utils/WebNet/web/webTools"; import { getUrlParams } from "../Utils/WebNet/web/webTools";
import { sendWebNet, WebNetName } from "../Utils/WebNet/WebNet"; import { getProjectId, sendWebNet, WebNetName } from "../Utils/WebNet/WebNet";
import store from "./store"; import store from "./store";
import {showShareGuide, showToast} from "../../Module/UIFast"; import {showShareGuide, showToast} from "../../Module/UIFast";
...@@ -29,7 +29,7 @@ class ShareStore { ...@@ -29,7 +29,7 @@ class ShareStore {
this.inviteInfo.inviteCode = genCodeData.inviteCode; this.inviteInfo.inviteCode = genCodeData.inviteCode;
} }
const type = getUrlParams("type") || "1"; let type = getUrlParams("type") || "1";
this.inviteInfo.shareUrl = store.frontVariable.loginUrl this.inviteInfo.shareUrl = store.frontVariable.loginUrl
+ `&inviteCode=${genCodeData.inviteCode}&type=${type}`; + `&inviteCode=${genCodeData.inviteCode}&type=${type}`;
...@@ -49,6 +49,14 @@ class ShareStore { ...@@ -49,6 +49,14 @@ class ShareStore {
// const path = "package/pages/snake-fun-play/index" + // const path = "package/pages/snake-fun-play/index" +
// "?webUrl=" + encodeURIComponent(this.inviteInfo.shareUrl); // "?webUrl=" + encodeURIComponent(this.inviteInfo.shareUrl);
if (getProjectId() == "p8ec64a64") {
if (+type == 988531 || +type == 1) {
type = "ymtcs"
} else if (+type == 988532 || +type == 2) {
type = "hmtcs"
}
}
const { success: genQrSuc, data: genQrData } = await sendWebNet(WebNetName.genQrCode, { const { success: genQrSuc, data: genQrData } = await sendWebNet(WebNetName.genQrCode, {
path: path, path: path,
type: type, type: type,
......
...@@ -98,14 +98,14 @@ ...@@ -98,14 +98,14 @@
</style> </style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/assets/plugin/zepto.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/assets/plugin/declare-process.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/assets/plugin/jszip.min.v3.10.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/assets/plugin/rem.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/assets/plugin/rem.min.js"></script>
<script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/style.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/custom.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>--> <!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>--> <!-- <script>eruda.init()</script>-->
...@@ -118,20 +118,20 @@ ...@@ -118,20 +118,20 @@
</div> </div>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>--> <!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8"> <script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/cocos-js/cc.js"}} {"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/cocos-js/cc.js"}}
</script> </script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1747884550947/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1748507269805/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