Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
147a9776
Commit
147a9776
authored
May 29, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改免登sb
parent
b78776e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
shareStore.ts
assets/Scripts/store/shareStore.ts
+11
-3
index.html
build/web-mobile/index.html
+12
-12
No files found.
assets/Scripts/store/shareStore.ts
View file @
147a9776
import
mobx
from
"mobx"
;
import
{
assetManager
,
ImageAsset
,
SpriteFrame
,
Texture2D
}
from
"cc"
;
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
{
showShareGuide
,
showToast
}
from
"../../Module/UIFast"
;
...
...
@@ -29,7 +29,7 @@ class ShareStore {
this
.
inviteInfo
.
inviteCode
=
genCodeData
.
inviteCode
;
}
cons
t
type
=
getUrlParams
(
"type"
)
||
"1"
;
le
t
type
=
getUrlParams
(
"type"
)
||
"1"
;
this
.
inviteInfo
.
shareUrl
=
store
.
frontVariable
.
loginUrl
+
`&inviteCode=
${
genCodeData
.
inviteCode
}
&type=
${
type
}
`
;
...
...
@@ -49,6 +49,14 @@ class ShareStore {
// const path = "package/pages/snake-fun-play/index" +
// "?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
,
{
path
:
path
,
type
:
type
,
...
...
build/web-mobile/index.html
View file @
147a9776
...
...
@@ -98,14 +98,14 @@
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/assets/plugin/rem.min.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/174
7884550947
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
...
...
@@ -118,20 +118,20 @@
</div>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/cocos-js/cc.js"
}}
</script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/174
7884550947
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/174
8507269805
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment