Commit 83ea78f6 authored by haiyoucuv's avatar haiyoucuv

上传

parent c07209ee
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "fdebacd3-a6f5-4010-adb5-40a100a869d1",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true
}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "6446a19f-0546-4738-b4df-6430220eb246",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "ErrorPanel"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "f24e2beb-3a22-4629-818f-2b787ce8b73a",
"files": [],
"subMetas": {},
"userData": {}
}
{
"__type__": "cc.SpriteAtlas"
}
{"ver":"1.0.8","importer":"auto-atlas","imported":true,"uuid":"0e3728e2-51cc-4dae-afd2-846c2371147c","files":[".json"],"subMetas":{},"userData":{"maxWidth":2048,"maxHeight":2048,"padding":2,"allowRotation":true,"forceSquared":false,"powerOfTwo":false,"algorithm":"MaxRects","format":"png","quality":80,"contourBleed":true,"paddingBleed":true,"filterUnused":false,"removeTextureInBundle":false,"removeImageInBundle":false,"removeSpriteAtlasInBundle":false,"compressSettings":{},"textureSetting":{"wrapModeS":"repeat","wrapModeT":"repeat","minfilter":"linear","magfilter":"linear","mipfilter":"none","anisotropy":0}}}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c7e3f1df-a26e-4730-9df3-06a3a290182d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c7e3f1df-a26e-4730-9df3-06a3a290182d@6c48a",
"displayName": "Game unavailable now",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c7e3f1df-a26e-4730-9df3-06a3a290182d",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c7e3f1df-a26e-4730-9df3-06a3a290182d@f9941",
"displayName": "Game unavailable now",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 396,
"height": 149,
"rawWidth": 396,
"rawHeight": 149,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-198,
-74.5,
0,
198,
-74.5,
0,
-198,
74.5,
0,
198,
74.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
149,
396,
149,
0,
0,
396,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-198,
-74.5,
0
],
"maxPos": [
198,
74.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c7e3f1df-a26e-4730-9df3-06a3a290182d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c7e3f1df-a26e-4730-9df3-06a3a290182d@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "42251f2d-565e-4d21-a53d-b1d87970e855",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "42251f2d-565e-4d21-a53d-b1d87970e855@6c48a",
"displayName": "Network error detected",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "42251f2d-565e-4d21-a53d-b1d87970e855",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "42251f2d-565e-4d21-a53d-b1d87970e855@f9941",
"displayName": "Network error detected",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 395,
"height": 148,
"rawWidth": 395,
"rawHeight": 148,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-197.5,
-74,
0,
197.5,
-74,
0,
-197.5,
74,
0,
197.5,
74,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
148,
395,
148,
0,
0,
395,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-197.5,
-74,
0
],
"maxPos": [
197.5,
74,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "42251f2d-565e-4d21-a53d-b1d87970e855@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "42251f2d-565e-4d21-a53d-b1d87970e855@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "525d4515-b301-48a2-bca0-4de5c1b4f586",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "525d4515-b301-48a2-bca0-4de5c1b4f586@6c48a",
"displayName": "System busy now",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "525d4515-b301-48a2-bca0-4de5c1b4f586",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "525d4515-b301-48a2-bca0-4de5c1b4f586@f9941",
"displayName": "System busy now",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 300,
"height": 143,
"rawWidth": 300,
"rawHeight": 143,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-150,
-71.5,
0,
150,
-71.5,
0,
-150,
71.5,
0,
150,
71.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
143,
300,
143,
0,
0,
300,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-150,
-71.5,
0
],
"maxPos": [
150,
71.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "525d4515-b301-48a2-bca0-4de5c1b4f586@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "525d4515-b301-48a2-bca0-4de5c1b4f586@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "ab21a250-f25c-4e49-8d1e-269da20f2185",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ab21a250-f25c-4e49-8d1e-269da20f2185@6c48a",
"displayName": "errorBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "ab21a250-f25c-4e49-8d1e-269da20f2185",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "ab21a250-f25c-4e49-8d1e-269da20f2185@f9941",
"displayName": "errorBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 625,
"height": 488,
"rawWidth": 625,
"rawHeight": 488,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-312.5,
-244,
0,
312.5,
-244,
0,
-312.5,
244,
0,
312.5,
244,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
488,
625,
488,
0,
0,
625,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-312.5,
-244,
0
],
"maxPos": [
312.5,
244,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "ab21a250-f25c-4e49-8d1e-269da20f2185@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "ab21a250-f25c-4e49-8d1e-269da20f2185@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "50d760ab-1bc6-4963-b508-aaa6039994a8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "50d760ab-1bc6-4963-b508-aaa6039994a8@6c48a",
"displayName": "ok",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "50d760ab-1bc6-4963-b508-aaa6039994a8",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "50d760ab-1bc6-4963-b508-aaa6039994a8@f9941",
"displayName": "ok",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 250,
"height": 83,
"rawWidth": 250,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-125,
-41.5,
0,
125,
-41.5,
0,
-125,
41.5,
0,
125,
41.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
83,
250,
83,
0,
0,
250,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-125,
-41.5,
0
],
"maxPos": [
125,
41.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "50d760ab-1bc6-4963-b508-aaa6039994a8@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "50d760ab-1bc6-4963-b508-aaa6039994a8@6c48a"
}
}
......@@ -1895,7 +1895,6 @@
"errorTip": {
"__id__": 68
},
"errorTip2": null,
"_id": ""
},
{
......
......@@ -469,7 +469,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -0.5,
"x": -0.5000000000000568,
"y": 232.5,
"z": 0
},
......@@ -644,7 +644,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -137.5,
"x": -137.50000000000006,
"y": 329.5,
"z": 0
},
......@@ -822,7 +822,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -137.5,
"x": -137.50000000000006,
"y": 341,
"z": 0
},
......@@ -1053,7 +1053,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 118.5,
"x": 118.49999999999994,
"y": 329.5,
"z": 0
},
......@@ -1231,7 +1231,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 131.5,
"x": 131.49999999999994,
"y": 341,
"z": 0
},
......@@ -2146,7 +2146,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 50,
"z": 0
},
"_lrot": {
......@@ -2186,8 +2186,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302.05322265625,
"height": 28.8918
"width": 288.0354919433594,
"height": 90.39999999999999
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2222,13 +2222,13 @@
"b": 255,
"a": 255
},
"_string": "No one is currently on the list.",
"_string": "Be the first to play and climb\nthe leaderboard!",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22.93,
"_fontSize": 22.93,
"_fontFamily": "Arial",
"_lineHeight": 22.93,
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
......@@ -2785,7 +2785,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 50,
"z": 0
},
"_lrot": {
......@@ -2825,8 +2825,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302.05322265625,
"height": 28.8918
"width": 288.0354919433594,
"height": 90.39999999999999
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2861,13 +2861,13 @@
"b": 255,
"a": 255
},
"_string": "No one is currently on the list.",
"_string": "Be the first to play and climb\nthe leaderboard!",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22.93,
"_fontSize": 22.93,
"_fontFamily": "Arial",
"_lineHeight": 22.93,
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
......@@ -2975,7 +2975,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"width": 750.0000000000001,
"height": 1624
},
"_anchorPoint": {
......
......@@ -5,6 +5,7 @@ import store from "./store/store";
import { HomeScene } from "./Scenes/HomeScene";
import NoPrizePanel from "./Panels/NoPrizePanel";
import PrizePanel from "./Panels/PrizePanel";
import ErrorPanel from "./Panels/ErrorPanel";
export default class GameMgr {
......@@ -26,19 +27,20 @@ export default class GameMgr {
*/
async start() {
showWaiting();
const {success, data} = await sendWebNet(WebNetName.start, {
const { success, data, code } = await sendWebNet(WebNetName.start, {
entryTokenId: store.miniAppQuery.entryTokenId,
});
}, { hideMsg: true });
hideWaiting();
store.updateIndex();
if (!success) {
showPanel(ErrorPanel, { code: code });
return false;
}
const decrypt = JSON.parse(AESDecrypt(data, "FDF817451A60EB6F", "cDOiBC1n2QrkAY2P"));
const {recordId} = decrypt;
const { recordId } = decrypt;
this.gameInfo = {
recordId,
......@@ -63,7 +65,7 @@ export default class GameMgr {
const encrypt = AESEncrypt(JSON.stringify(params), "FDF817451A60EB6F", "cDOiBC1n2QrkAY2P");
const {success, data} = await sendWebNet(WebNetName.submit, {
const { success, data } = await sendWebNet(WebNetName.submit, {
encryptedData: encrypt,
}, {
// isGet: false,
......@@ -81,17 +83,17 @@ export default class GameMgr {
showPanel(NoPrizePanel, {
highest: score,
score,
errorMsg: "There are too many people currently.\n" +
"You can check the coupon pack later\n" +
"to see if you won.",
errorMsg: "Too many players now.\n" +
"Please come back later to check if\n" +
"you’ve won.",
});
} else if (+data.thirdCode == 10002) {
showPanel(NoPrizePanel, {
highest: score,
score,
errorMsg: "System exception.\n" +
"You can check the coupon pack later\n" +
"to see if you won.",
errorMsg: "Service currently unavailable.\n" +
"Please come back later to check if\n" +
"you’ve won.",
});
} else {
showToast(data.thirdMsg);
......
import Panel from "../../Module/Panel";
import { _decorator, Button, Node, Sprite, SpriteFrame } from "cc";
import { observer } from "../store/decorators";
const { ccclass, property } = _decorator;
@observer
@ccclass('ErrorPanel')
export default class ErrorPanel extends Panel {
static bundle: string = "ErrorPanel";
static skin = "ErrorPanel";
// static group = "ErrorPanel";
@property(Node) ok: Node = null;
@property(Sprite) tip: Sprite = null;
@property(SpriteFrame) gameUnavailable: SpriteFrame = null;
@property(SpriteFrame) networkError: SpriteFrame = null;
@property(SpriteFrame) systemBusy: SpriteFrame = null;
onLoad() {
this.ok.on(Button.EventType.CLICK, this.clickOK);
}
protected start() {
this.tip.spriteFrame = {
400001: this.gameUnavailable,
400002: this.gameUnavailable,
400003: this.systemBusy,
100013: this.networkError,
}[this.data.code] || this.networkError;
}
clickOK = () => {
this.hidePanel();
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"9c588668-a918-493b-a4cc-627d7f89a75a","files":[],"subMetas":{},"userData":{}}
......@@ -22,7 +22,6 @@ export default class NoPrizePanel extends Panel {
@property(Node) box: Node = null;
@property(Node) errorTip: Node = null;
@property(Node) errorTip2: Node = null;
onLoad() {
......
{
"ok": true,
"ok": false,
"msg": "ok",
"code": 0,
"data": "hId4l6KOn3coexfedjTQ48vx0NEZcG0Se2UrnuDcr8Y=",
......
......@@ -9,7 +9,7 @@
"8": {
"3\\extension": {
"name": "extension",
"time": 1727427011976
"time": 1728353677505
}
}
}
......
......@@ -3,7 +3,7 @@
"config": {
"images": [],
"sceneUUID": {},
"scene": "9e293cde-e27b-4902-808b-e884f3e9da32"
"scene": "6446a19f-0546-4738-b4df-6430220eb246"
},
"show": false
}
......@@ -1283,8 +1283,8 @@
"z": 0
},
"contentRect": {
"x": -810.8862852387347,
"y": -839.3841229849393,
"x": -704.2799743888494,
"y": -150.93562353294638,
"width": 508,
"height": 700
},
......
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