Commit 89e2d8fa authored by haiyoucuv's avatar haiyoucuv

init

parent 55203e36
......@@ -481,7 +481,7 @@
"y": -180,
"z": -12.000012657215834
},
"_id": "fc3KNhQ/dEr6oK1dl0jKDc"
"_id": "3f/wTYNORB4KrEziyR3v50"
},
{
"__type__": "cc.UITransform",
......@@ -503,7 +503,7 @@
"x": 0,
"y": 1
},
"_id": "752RFkbHpKYZ9bJVnhnYoO"
"_id": "705Dbxi/pEQZbDMu4sqbMz"
},
{
"__type__": "cc.Sprite",
......@@ -539,7 +539,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "c5VOsCIJdO05oOQJ8tKBGN"
"_id": "55tgtYGhdDiLiKUIf7DPNT"
},
{
"__type__": "cc.Node",
......@@ -587,7 +587,7 @@
"y": -180,
"z": -11.00000220913452
},
"_id": "10SEUR1aNGB6stb357DsGJ"
"_id": "ceVR5jvyRJ763IOzxqRNWU"
},
{
"__type__": "cc.UITransform",
......@@ -609,7 +609,7 @@
"x": 0,
"y": 1
},
"_id": "f2ngscivRPBqPETr0RgJi1"
"_id": "3aD627ifxO0bTW1tFZ1K/g"
},
{
"__type__": "cc.Sprite",
......@@ -645,7 +645,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "a043vxnbdOap5SKn8yVgha"
"_id": "faCzpPQDVA84CeubOqBtLa"
},
{
"__type__": "cc.Node",
......@@ -693,7 +693,7 @@
"y": -180,
"z": -64.00000614258742
},
"_id": "97laqkxVFPfp4RH4XVHVtN"
"_id": "3aBqXGT8ZGza0jNexSbaDl"
},
{
"__type__": "cc.UITransform",
......@@ -715,7 +715,7 @@
"x": 0,
"y": 1
},
"_id": "2bO/6RavVLuJZJZk6sJX8P"
"_id": "0bx96xiR5HoLg7AY6SFMlP"
},
{
"__type__": "cc.Sprite",
......@@ -751,7 +751,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "b18ScQdalMXKVre4pl3g73"
"_id": "5dvQGk7GJNxY0uxi7cKB1d"
},
{
"__type__": "cc.Node",
......@@ -799,7 +799,7 @@
"y": 180,
"z": 25.99999385741257
},
"_id": "9aGiLcI5xKbpCYAdnTCkJI"
"_id": "92M39nqldFXaUHc4wLEZxL"
},
{
"__type__": "cc.UITransform",
......@@ -821,7 +821,7 @@
"x": 0,
"y": 1
},
"_id": "7aa4qWrSlNVpdjOvyQp13p"
"_id": "a0ePXItdRGcY/bJlmaEPY7"
},
{
"__type__": "cc.Sprite",
......@@ -857,7 +857,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "2acqQJf2pEkpehpL1OpXxa"
"_id": "c0Z54leFxM06ocG2tuUqFq"
},
{
"__type__": "cc.UITransform",
......@@ -934,7 +934,7 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -660.751,
"x": -689,
"y": 0,
"z": 0
},
......@@ -4079,7 +4079,7 @@
"__prefab": null,
"_alignFlags": 8,
"_target": null,
"_left": 151.24900000000002,
"_left": 123,
"_right": 0,
"_top": 0,
"_bottom": 0,
......@@ -4201,7 +4201,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -34.68900000000008,
"y": 273.559,
"y": 305.66999999999996,
"z": 0
},
"_lrot": {
......@@ -4383,7 +4383,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -133.077,
"y": 273.559,
"y": 305.66999999999996,
"z": 0
},
"_lrot": {
......@@ -4547,7 +4547,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -234.68900000000008,
"y": 273.559,
"y": 305.66999999999996,
"z": 0
},
"_lrot": {
......@@ -4711,7 +4711,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -334.6890000000001,
"y": 273.559,
"y": 305.66999999999996,
"z": 0
},
"_lrot": {
......@@ -6387,7 +6387,7 @@
"__id__": 168
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 176
......@@ -6397,7 +6397,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -336.40200000000004,
"y": 208.418,
"y": 245.10699999999997,
"z": 0
},
"_lrot": {
......@@ -6612,7 +6612,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -15.120000000000001,
"y": -25.12,
"z": 0
},
"_lrot": {
......@@ -6683,14 +6683,17 @@
"_string": "",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 20,
"_fontSize": 20,
"_actualFontSize": 22,
"_fontSize": 22,
"_fontFamily": "Arial",
"_lineHeight": 24,
"_overflow": 3,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_font": {
"__uuid__": "51c12289-a516-4991-8323-ac98cee8b520",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
......@@ -6765,7 +6768,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 216,
"height": 30.240000000000002
"height": 50.24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -6833,8 +6836,8 @@
"_startAxis": 0,
"_paddingLeft": 10,
"_paddingRight": 10,
"_paddingTop": 0,
"_paddingBottom": 0,
"_paddingTop": 10,
"_paddingBottom": 10,
"_spacingX": 0,
"_spacingY": 0,
"_verticalDirection": 1,
......
This diff is collapsed.
......@@ -397,7 +397,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 40,
"y": 26,
"z": 0
},
"_lrot": {
......@@ -644,7 +644,9 @@
"skin2": {
"__uuid__": "a078d1dd-aa4a-49b7-86ea-b49619643a92@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "cc.PrefabInfo",
......
......@@ -422,7 +422,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -260,
"y": 32.4,
"y": 19.836000000000013,
"z": 0
},
"_lrot": {
......@@ -560,7 +560,7 @@
"_target": null,
"_left": 150,
"_right": 0,
"_top": 35,
"_top": 47.563999999999986,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
......@@ -619,8 +619,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -259.99992968749996,
"y": -7.6,
"x": -260,
"y": -20.163999999999987,
"z": 0
},
"_lrot": {
......@@ -756,9 +756,9 @@
},
"_alignFlags": 9,
"_target": null,
"_left": 150.00007031250004,
"_left": 150,
"_right": 0,
"_top": 75,
"_top": 87.564,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
......@@ -1851,7 +1851,9 @@
"skin2": {
"__uuid__": "c8667bee-c2a0-4159-8474-2d620f8c0b00@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
......@@ -1880,7 +1882,9 @@
"skin2": {
"__uuid__": "3802228e-9e2f-4e1a-98a3-c0146817751a@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
......@@ -1909,7 +1913,9 @@
"skin2": {
"__uuid__": "cf4dd7df-2848-489e-bf94-67a8c19faef6@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "cc.PrefabInfo",
......
......@@ -604,7 +604,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 185,
"y": 175,
"z": 0
},
"_lrot": {
......@@ -1597,7 +1597,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 90,
"_top": 100,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
......@@ -1661,7 +1661,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -77.5,
"y": -80,
"z": 0
},
"_lrot": {
......@@ -1714,7 +1714,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 12.5,
"z": 0
},
"_lrot": {
......@@ -2069,7 +2069,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 820,
"height": 425
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2099,7 +2099,7 @@
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 10,
"_bottom": 20,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
......
......@@ -22,7 +22,9 @@
],
"_active": true,
"_components": [],
"_prefab": null,
"_prefab": {
"__id__": 212
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
......@@ -52,7 +54,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 212
"__id__": 213
},
"_id": "77109a78-3867-4561-a004-2d33e0cd5788"
},
......@@ -194,7 +196,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 739.6666666666667,
"_orthoHeight": 777.872463768116,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -1599,7 +1601,7 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -137.94499999999994,
"x": -78.56899999999996,
"y": 0,
"z": 0
},
......@@ -1643,7 +1645,7 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 0.5,
"y": 0.5
},
"_id": "b6eunHutBK6rHDCwFIu54d"
......@@ -1660,7 +1662,7 @@
"__prefab": null,
"_alignFlags": 9,
"_target": null,
"_left": 165.55500000000006,
"_left": 134.93100000000004,
"_right": 0,
"_top": -1.6999999999999993,
"_bottom": 0,
......@@ -1764,7 +1766,7 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 187.20885937499997,
"x": 191.97800000000007,
"y": 0,
"z": 0
},
......@@ -1825,7 +1827,7 @@
"__prefab": null,
"_alignFlags": 8,
"_target": null,
"_left": 482.36657421875,
"_left": 487.13571484375007,
"_right": 0,
"_top": 0,
"_bottom": 0,
......@@ -2602,7 +2604,7 @@
"__id__": 106
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 113
......@@ -4414,7 +4416,7 @@
"__id__": 153
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 160
......@@ -6464,7 +6466,7 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 421.05999999999995,
"x": 456.06600000000003,
"y": 0,
"z": 0
},
......@@ -7260,7 +7262,7 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 113.10500000000002,
"x": 110,
"y": 0,
"z": 0
},
......@@ -7911,7 +7913,9 @@
"skin2": {
"__uuid__": "a06f0440-b9f0-4547-be68-c885e9c5c369@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
......@@ -7940,7 +7944,9 @@
"skin2": {
"__uuid__": "f05a8b19-fd48-4508-be50-cefd3d1d55fa@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
......@@ -7969,7 +7975,9 @@
"skin2": {
"__uuid__": "724fb5c3-e8dc-4e09-a796-1cd1d10390c6@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
......@@ -7998,7 +8006,9 @@
"skin2": {
"__uuid__": "8de59af5-7191-4ef6-b4bb-00e68d2c7148@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
......@@ -8027,33 +8037,43 @@
"skin2": {
"__uuid__": "6b7cc49f-51b8-4c28-b67b-8e27f137c336@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
"node1": null,
"node2": null
},
{
"__type__": "cc.PrefabInfo",
"root": null,
"asset": null,
"fileId": "77109a78-3867-4561-a004-2d33e0cd5788",
"instance": null,
"targetOverrides": null
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 213
"__id__": 214
},
"shadows": {
"__id__": 214
"__id__": 215
},
"_skybox": {
"__id__": 215
"__id__": 216
},
"fog": {
"__id__": 216
"__id__": 217
},
"octree": {
"__id__": 217
"__id__": 218
},
"skin": {
"__id__": 218
"__id__": 219
},
"lightProbeInfo": {
"__id__": 219
"__id__": 220
},
"postSettings": {
"__id__": 220
"__id__": 221
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
......
......@@ -40,7 +40,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 266.48100000000005,
"z": 0
},
"_lrot": {
......@@ -92,7 +92,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -235.5,
"x": -239.12,
"y": 0,
"z": 0
},
......@@ -161,7 +161,7 @@
},
"_alignFlags": 10,
"_target": null,
"_left": 33.30810546875,
"_left": 29.688105468749995,
"_right": 0,
"_top": 0,
"_bottom": 0,
......@@ -290,7 +290,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -134.94499999999994,
"x": -79,
"y": 0,
"z": 0
},
......@@ -336,7 +336,7 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 0.5,
"y": 0.5
},
"_id": ""
......@@ -359,7 +359,7 @@
},
"_alignFlags": 9,
"_target": null,
"_left": 165.55500000000006,
"_left": 189.80810546875,
"_right": 0,
"_top": -1.6999999999999993,
"_bottom": 0,
......@@ -488,7 +488,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 190.20885937499997,
"x": 192.4179999999999,
"y": 0,
"z": 0
},
......@@ -557,7 +557,7 @@
},
"_alignFlags": 8,
"_target": null,
"_left": 459.01696484375,
"_left": 461.2261054687499,
"_right": 0,
"_top": 0,
"_bottom": 0,
......@@ -697,7 +697,6 @@
"__id__": 0
},
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
......@@ -325,6 +325,12 @@ export class BlessingBagPage extends Scene {
// @ts-ignore
wx.miniProgram.navigateTo({
url: `${jumpUrl}?taskId=${getUrlParams("taskToken")}`,
success: () => {
console.log("跳转成功");
},
fail: (e) => {
console.error("跳转失败", e);
}
});
}
}
......
......@@ -9,6 +9,7 @@ import { ECard, EPropType, Events } from "./Common/Enums";
import gameStore from "../../store/gameStore";
import { Target } from "./Components/Target";
import { Global } from "./Global";
import store from "../../store/store";
const { ccclass, property } = _decorator;
......@@ -24,6 +25,7 @@ export class Player extends Snake {
@property(Camera)
camera: Camera = null;
@property(Label) nickTxt: Label = null;
@property(Label)
addLengthLabel: Label = null
......@@ -219,6 +221,7 @@ export class Player extends Snake {
onLoad() {
super.onLoad();
this.nickTxt.string = store.homeInfo.nickname || "微信用户";
this.tag = Snake.getTag();
input.on(Input.EventType.KEY_DOWN, this.onKeyDown, this);
input.on(Input.EventType.KEY_UP, this.onKeyUp, this);
......@@ -299,6 +302,7 @@ export class Player extends Snake {
onUpdate(dt: number) {
this.head.angle = (360 - this.joystick.angle) % 360;
super.onUpdate(dt);
this.nickTxt.node.setPosition(this.head.getPosition().add3f(0, 54, 0));
}
......
......@@ -98,14 +98,14 @@
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/src/assets/plugin/rem.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/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/1735095502215/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/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/1735095502215/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/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/1735095502215/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735095502215/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735106470043/index.js').catch(function (err) {
console.error(err);
})
</script>
......
{
"code": null,
"encode": false,
"data": {
"actEndTime": 1735638689560,
"actStartTime": 1733565086149,
"avatar": null,
"bagPopVO": {
"bagNum": 42900739.4793739,
"bagImg": "sunt esse ea Duis",
"bagName": "sint"
},
"bagPopVO": null,
"benefitDesc": "规则权益文案",
"continueSignDays": 0,
"creditsNum": 1011347,
"currentTime": 1733984931891,
"firstEntryFlag": true,
"luckBenefitDesc": "权益福袋权益",
"newGetSpId": null,
"newGetSpImage": null,
"newGetSpName": null,
"nickname": null,
"rankInfos": [
{
"avatar": null,
"index": 1,
"nickname": null
},
{
"avatar": null,
"index": 2,
"nickname": null
},
{
"avatar": null,
"index": 3,
"nickname": null
}
],
"rankPopList": [
{
"avatar": null,
"index": 1,
"nickname": null,
"openDate":1733984931891,
"prizeName": "sunt esse ea Duis",
"count":5,
"prizeImage":"//yun.dui88.com/images/201907/tua0um9jjp.jpg"
}
],
"rankPopList": [],
"signPopFlag": false,
"bagLightFlag": true
},
"message": null,
"success": true,
"timeStamp": 1733984932128
}
\ No newline at end of file
// export enum ESpType {
// bag_silver = "sp_bag_silver", // 银福袋
// revival_card = "sp_revival_card", // 复活卡
// shield_card = "sp_shield_card", // 护盾卡
// agility_card = "sp_agility_card", // 移速卡
// experience_card = "sp_experience_card", // 双倍卡
// add_length = "sp_add_length", // 加长卡
// decoration_1 = "sp_decoration_1", // 蛇皮肤
// }
import * as fs from "fs";
import CryptoJS from "crypto-js";
import "crypto-js/aes.js";
import "crypto-js/pad-zeropadding.js";
const { AES, enc, mode, pad } = CryptoJS;
const getOptions = (iv) => {
return {
iv: enc.Utf8.parse(iv),
mode: mode.CBC,
padding: pad.ZeroPadding,
};
};
/** 加密 */
const AESEncrypt = (str, key, iv) => {
const options = getOptions(iv);
return AES.encrypt(str, enc.Utf8.parse(key), options).toString();
};
const startInfo = {
dividePop: { // 瓜分弹窗
boolShowPop: true,
creditsNum: 2,
rankOrder: 2,
rankMultiply: 2,
},
settlementPop: { // 结算弹窗
boolShowPop: true,
oldRankMultiply: 2,
newRankMultiply: 3,
rankList: [
{
nickName: "小明",
rankScore: 1,
boolMe: true,
},
{
nickName: "小明",
rankScore: 1,
boolMe: true,
}
]
},
firstGameFlag: true, // 本局是否第一局,为true则有一,二,无尽模式三个阶段的区别
accumulateLuckNum: 3, // 当局累计获得福袋数量
initScore: 50, // 当局初始分数值
limitLuckNum: 5, // 当日上限可获得福袋数
downArea: [3, 2, 1], // 掉落分布,集合,比如每日上限6个,这里配置返回1、2、3
currentAcquireNum: 5, // 当局剩余可获得福袋数,不包含accumulateLuckNum,当局累计获得福袋数量
currentStage: 3, // 当前应该进入的阶段(1-一阶段 2-二阶段 3-无尽模式)
spCardList: [ // 道具卡集合
{ spId: "sp_bag_silver", num: 1 },
{ spId: "sp_revival_card", num: 2 },
{ spId: "sp_shield_card", num: 13 },
{ spId: "sp_agility_card", num: 9 },
{ spId: "sp_experience_card", num: 5 },
{ spId: "sp_add_length", num: 6 },
{ spId: "sp_decoration_1", num: 1 },
],
// sp_decoration_default装扮默认皮肤,sp_skin_snake_year装扮蛇皮肤
currentDressUp: "sp_decoration_default",
// currentDressUp: "sp_skin_snake_year",
startId: 12312, // 游戏记录ID
slideScore: 100, // 校验滑块的分数值
};
const encrypt = AESEncrypt(JSON.stringify(startInfo), "6FDCE02EBB43C3A8", "cDOiBC1n2QrkAY2P");
const json = {
success: true,
code: "",
message: "",
data: encrypt
};
fs.writeFileSync("./index.do.json", JSON.stringify(json, null, 4));
\ No newline at end of file
......@@ -19,7 +19,7 @@
"newGetSpId": null,
"newGetSpImage": null,
"newGetSpName": null,
"nickname": null,
"nickname": "123123123123",
"rankInfos": [
{
"avatar": null,
......
......@@ -45,8 +45,8 @@
"progress": 1,
"state": "success",
"stage": "build",
"message": "2024-12-25 10:59:36 build success in 1 min 14 s!",
"detailMessage": "refresh db internal success\r",
"message": "2024-12-25 14:01:58 build success in 49 s!",
"detailMessage": "builder:build-project-total (48928ms)\r",
"options": {
"name": "cocos-template-3d",
"server": "",
......@@ -109,7 +109,7 @@
"__version__": "1.3.8",
"logDest": "project://temp/builder/log/web-mobile2024-11-6 15-39.log"
},
"time": "2024-12-25 10:58:21",
"time": "2024-12-25 14:01:09",
"dirty": false
}
}
......
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