Spring774
2025-11-04 0bef50e9ddf0df2d7bd9025086d5c526740c29db
接为华为,可以直接提交审核
3 files modified
615 ■■■■■ changed files
assets/Scene/logo.fire 565 ●●●●● patch | view | raw | blame | history
assets/Script/Logo.ts 22 ●●●●● patch | view | raw | blame | history
assets/Script/Sdk/SdkHuawei.ts 28 ●●●●● patch | view | raw | blame | history
assets/Scene/logo.fire
@@ -184,22 +184,25 @@
        "__id__": 14
      },
      {
        "__id__": 18
        "__id__": 22
      },
      {
        "__id__": 20
        "__id__": 26
      },
      {
        "__id__": 28
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 53
        "__id__": 61
      },
      {
        "__id__": 54
        "__id__": 62
      },
      {
        "__id__": 55
        "__id__": 63
      }
    ],
    "_prefab": null,
@@ -500,8 +503,8 @@
    },
    "_contentSize": {
      "__type__": "cc.Size",
      "width": 103,
      "height": 103
      "width": 60,
      "height": 60
    },
    "_anchorPoint": {
      "__type__": "cc.Vec2",
@@ -513,7 +516,7 @@
      "ctor": "Float64Array",
      "array": [
        0,
        -254.938,
        -250,
        0,
        0,
        0,
@@ -556,7 +559,7 @@
      "__uuid__": "d9b98963-043e-4ed3-9d95-c0a2fe531c6f"
    },
    "_type": 0,
    "_sizeMode": 1,
    "_sizeMode": 0,
    "_fillType": 0,
    "_fillCenter": {
      "__type__": "cc.Vec2",
@@ -590,7 +593,7 @@
  },
  {
    "__type__": "cc.Node",
    "_name": "title_bg",
    "_name": "ButtonStartGame",
    "_objFlags": 0,
    "_parent": {
      "__id__": 5
@@ -603,7 +606,390 @@
    "_active": true,
    "_components": [
      {
        "__id__": 20
      }
    ],
    "_prefab": null,
    "_opacity": 255,
    "_color": {
      "__type__": "cc.Color",
      "r": 255,
      "g": 255,
      "b": 255,
      "a": 255
    },
    "_contentSize": {
      "__type__": "cc.Size",
      "width": 180,
      "height": 70
    },
    "_anchorPoint": {
      "__type__": "cc.Vec2",
      "x": 0.5,
      "y": 0.5
    },
    "_trs": {
      "__type__": "TypedArray",
      "ctor": "Float64Array",
      "array": [
        0,
        -250,
        0,
        0,
        0,
        0,
        1,
        1,
        1,
        1
      ]
    },
    "_eulerAngles": {
      "__type__": "cc.Vec3",
      "x": 0,
      "y": 0,
      "z": 0
    },
    "_skewX": 0,
    "_skewY": 0,
    "_is3DNode": false,
    "_groupIndex": 0,
    "groupIndex": 0,
    "_id": "f0YHKK2LFPFZyvxbMFOgjS"
  },
  {
    "__type__": "cc.Node",
    "_name": "Background",
    "_objFlags": 0,
    "_parent": {
      "__id__": 14
    },
    "_children": [
      {
        "__id__": 16
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 18
      },
      {
        "__id__": 19
      }
    ],
    "_prefab": null,
    "_opacity": 255,
    "_color": {
      "__type__": "cc.Color",
      "r": 0,
      "g": 116,
      "b": 220,
      "a": 255
    },
    "_contentSize": {
      "__type__": "cc.Size",
      "width": 180,
      "height": 70
    },
    "_anchorPoint": {
      "__type__": "cc.Vec2",
      "x": 0.5,
      "y": 0.5
    },
    "_trs": {
      "__type__": "TypedArray",
      "ctor": "Float64Array",
      "array": [
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        1,
        0
      ]
    },
    "_eulerAngles": {
      "__type__": "cc.Vec3",
      "x": 0,
      "y": 0,
      "z": 0
    },
    "_skewX": 0,
    "_skewY": 0,
    "_is3DNode": false,
    "_groupIndex": 0,
    "groupIndex": 0,
    "_id": "afDeN7Y3JPCa4T6ILl2mqq"
  },
  {
    "__type__": "cc.Node",
    "_name": "Label",
    "_objFlags": 0,
    "_parent": {
      "__id__": 15
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 17
      }
    ],
    "_prefab": null,
    "_opacity": 255,
    "_color": {
      "__type__": "cc.Color",
      "r": 0,
      "g": 0,
      "b": 0,
      "a": 255
    },
    "_contentSize": {
      "__type__": "cc.Size",
      "width": 140,
      "height": 56.7
    },
    "_anchorPoint": {
      "__type__": "cc.Vec2",
      "x": 0.5,
      "y": 0.5
    },
    "_trs": {
      "__type__": "TypedArray",
      "ctor": "Float64Array",
      "array": [
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        1,
        1
      ]
    },
    "_eulerAngles": {
      "__type__": "cc.Vec3",
      "x": 0,
      "y": 0,
      "z": 0
    },
    "_skewX": 0,
    "_skewY": 0,
    "_is3DNode": false,
    "_groupIndex": 0,
    "groupIndex": 0,
    "_id": "d7onLoEKpFcJ2znGZPdDhI"
  },
  {
    "__type__": "cc.Label",
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 16
    },
    "_enabled": true,
    "_materials": [
      {
        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
      }
    ],
    "_srcBlendFactor": 770,
    "_dstBlendFactor": 771,
    "_string": "开始游戏",
    "_N$string": "开始游戏",
    "_fontSize": 35,
    "_lineHeight": 45,
    "_enableWrapText": false,
    "_N$file": null,
    "_isSystemFontUsed": true,
    "_spacingX": 0,
    "_batchAsBitmap": false,
    "_styleFlags": 0,
    "_underlineHeight": 0,
    "_N$horizontalAlign": 1,
    "_N$verticalAlign": 1,
    "_N$fontFamily": "Arial",
    "_N$overflow": 0,
    "_N$cacheMode": 1,
    "_id": "c4ah6Wr/hP76ejoauVJ/vP"
  },
  {
    "__type__": "cc.Sprite",
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 15
    },
    "_enabled": true,
    "_materials": [
      {
        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
      }
    ],
    "_srcBlendFactor": 770,
    "_dstBlendFactor": 771,
    "_spriteFrame": {
      "__uuid__": "410fb916-8721-4663-bab8-34397391ace7"
    },
    "_type": 1,
    "_sizeMode": 0,
    "_fillType": 0,
    "_fillCenter": {
      "__type__": "cc.Vec2",
      "x": 0,
      "y": 0
    },
    "_fillStart": 0,
    "_fillRange": 0,
    "_isTrimmedMode": true,
    "_atlas": null,
    "_id": "10122AutJEd6hnzXiwdots"
  },
  {
    "__type__": "cc.Widget",
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 15
    },
    "_enabled": true,
    "alignMode": 0,
    "_target": null,
    "_alignFlags": 45,
    "_left": 0,
    "_right": 0,
    "_top": 0,
    "_bottom": 0,
    "_verticalCenter": 0,
    "_horizontalCenter": 0,
    "_isAbsLeft": true,
    "_isAbsRight": true,
    "_isAbsTop": true,
    "_isAbsBottom": true,
    "_isAbsHorizontalCenter": true,
    "_isAbsVerticalCenter": true,
    "_originalWidth": 100,
    "_originalHeight": 40,
    "_id": "00Bn3YAL5AdZ6qDnhWzlt2"
  },
  {
    "__type__": "cc.Button",
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 14
    },
    "_enabled": true,
    "_normalMaterial": null,
    "_grayMaterial": null,
    "duration": 0.1,
    "zoomScale": 1.2,
    "clickEvents": [
      {
        "__id__": 21
      }
    ],
    "_N$interactable": true,
    "_N$enableAutoGrayEffect": false,
    "_N$transition": 3,
    "transition": 3,
    "_N$normalColor": {
      "__type__": "cc.Color",
      "r": 230,
      "g": 230,
      "b": 230,
      "a": 255
    },
    "_N$pressedColor": {
      "__type__": "cc.Color",
      "r": 200,
      "g": 200,
      "b": 200,
      "a": 255
    },
    "pressedColor": {
      "__type__": "cc.Color",
      "r": 200,
      "g": 200,
      "b": 200,
      "a": 255
    },
    "_N$hoverColor": {
      "__type__": "cc.Color",
      "r": 255,
      "g": 255,
      "b": 255,
      "a": 255
    },
    "hoverColor": {
      "__type__": "cc.Color",
      "r": 255,
      "g": 255,
      "b": 255,
      "a": 255
    },
    "_N$disabledColor": {
      "__type__": "cc.Color",
      "r": 120,
      "g": 120,
      "b": 120,
      "a": 200
    },
    "_N$normalSprite": null,
    "_N$pressedSprite": {
      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
    },
    "pressedSprite": {
      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
    },
    "_N$hoverSprite": {
      "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
    },
    "hoverSprite": {
      "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
    },
    "_N$disabledSprite": {
      "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
    },
    "_N$target": {
      "__id__": 15
    },
    "_id": "18SxC468ZMGZBXuhvwRknS"
  },
  {
    "__type__": "cc.ClickEvent",
    "target": {
      "__id__": 5
    },
    "component": "",
    "_componentId": "af275ecUXVIvryJqHF/oRNF",
    "handler": "onClickStartGame",
    "customEventData": ""
  },
  {
    "__type__": "cc.Node",
    "_name": "title_bg",
    "_objFlags": 0,
    "_parent": {
      "__id__": 5
    },
    "_children": [
      {
        "__id__": 23
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 25
      }
    ],
    "_prefab": null,
@@ -659,13 +1045,13 @@
    "_name": "Bricks",
    "_objFlags": 0,
    "_parent": {
      "__id__": 14
      "__id__": 22
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 16
        "__id__": 24
      }
    ],
    "_prefab": null,
@@ -721,7 +1107,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 15
      "__id__": 23
    },
    "_enabled": true,
    "_materials": [
@@ -753,7 +1139,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 14
      "__id__": 22
    },
    "_enabled": true,
    "_materials": [
@@ -791,7 +1177,7 @@
    "_active": true,
    "_components": [
      {
        "__id__": 19
        "__id__": 27
      }
    ],
    "_prefab": null,
@@ -806,7 +1192,7 @@
    "_contentSize": {
      "__type__": "cc.Size",
      "width": 640,
      "height": 200
      "height": 260
    },
    "_anchorPoint": {
      "__type__": "cc.Vec2",
@@ -818,7 +1204,7 @@
      "ctor": "Float64Array",
      "array": [
        0,
        -504.872,
        -489.083,
        0,
        0,
        0,
@@ -847,7 +1233,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 18
      "__id__": 26
    },
    "_enabled": true,
    "_materials": [
@@ -857,8 +1243,8 @@
    ],
    "_srcBlendFactor": 770,
    "_dstBlendFactor": 771,
    "_string": "抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。",
    "_N$string": "抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。",
    "_string": "健康游戏忠告\n抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。\n\n著作权人:上海秦巢信息科技有限公司\n登 记 号:  2021SR0733584\n\n本游戏为单机游戏, 一旦清除缓存游戏数据将丢失",
    "_N$string": "健康游戏忠告\n抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。\n\n著作权人:上海秦巢信息科技有限公司\n登 记 号:  2021SR0733584\n\n本游戏为单机游戏, 一旦清除缓存游戏数据将丢失",
    "_fontSize": 36,
    "_lineHeight": 42,
    "_enableWrapText": false,
@@ -884,16 +1270,16 @@
    },
    "_children": [
      {
        "__id__": 21
        "__id__": 29
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 51
        "__id__": 59
      },
      {
        "__id__": 52
        "__id__": 60
      }
    ],
    "_prefab": null,
@@ -949,32 +1335,32 @@
    "_name": "white_bg",
    "_objFlags": 0,
    "_parent": {
      "__id__": 20
      "__id__": 28
    },
    "_children": [
      {
        "__id__": 22
      },
      {
        "__id__": 24
      },
      {
        "__id__": 26
      },
      {
        "__id__": 30
      },
      {
        "__id__": 32
      },
      {
        "__id__": 34
      },
      {
        "__id__": 38
      },
      {
        "__id__": 42
      },
      {
        "__id__": 50
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 50
        "__id__": 58
      }
    ],
    "_prefab": null,
@@ -1030,13 +1416,13 @@
    "_name": "Title",
    "_objFlags": 0,
    "_parent": {
      "__id__": 21
      "__id__": 29
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 23
        "__id__": 31
      }
    ],
    "_prefab": null,
@@ -1092,7 +1478,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 22
      "__id__": 30
    },
    "_enabled": true,
    "_materials": [
@@ -1125,13 +1511,13 @@
    "_name": "New Label",
    "_objFlags": 0,
    "_parent": {
      "__id__": 21
      "__id__": 29
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 25
        "__id__": 33
      }
    ],
    "_prefab": null,
@@ -1187,7 +1573,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 24
      "__id__": 32
    },
    "_enabled": true,
    "_materials": [
@@ -1220,16 +1606,16 @@
    "_name": "New Label",
    "_objFlags": 0,
    "_parent": {
      "__id__": 21
      "__id__": 29
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 27
        "__id__": 35
      },
      {
        "__id__": 28
        "__id__": 36
      }
    ],
    "_prefab": null,
@@ -1285,7 +1671,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 26
      "__id__": 34
    },
    "_enabled": true,
    "_materials": [
@@ -1318,7 +1704,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 26
      "__id__": 34
    },
    "_enabled": true,
    "_normalMaterial": null,
@@ -1327,7 +1713,7 @@
    "zoomScale": 1.2,
    "clickEvents": [
      {
        "__id__": 29
        "__id__": 37
      }
    ],
    "_N$interactable": true,
@@ -1400,16 +1786,16 @@
    "_name": "New Label copy",
    "_objFlags": 0,
    "_parent": {
      "__id__": 21
      "__id__": 29
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 31
        "__id__": 39
      },
      {
        "__id__": 32
        "__id__": 40
      }
    ],
    "_prefab": null,
@@ -1465,7 +1851,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 30
      "__id__": 38
    },
    "_enabled": true,
    "_materials": [
@@ -1498,7 +1884,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 30
      "__id__": 38
    },
    "_enabled": true,
    "_normalMaterial": null,
@@ -1507,7 +1893,7 @@
    "zoomScale": 1.2,
    "clickEvents": [
      {
        "__id__": 33
        "__id__": 41
      }
    ],
    "_N$interactable": true,
@@ -1580,17 +1966,17 @@
    "_name": "ButtonCancel",
    "_objFlags": 0,
    "_parent": {
      "__id__": 21
      "__id__": 29
    },
    "_children": [
      {
        "__id__": 35
        "__id__": 43
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 40
        "__id__": 48
      }
    ],
    "_prefab": null,
@@ -1646,20 +2032,20 @@
    "_name": "Background",
    "_objFlags": 0,
    "_parent": {
      "__id__": 34
      "__id__": 42
    },
    "_children": [
      {
        "__id__": 36
        "__id__": 44
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 38
        "__id__": 46
      },
      {
        "__id__": 39
        "__id__": 47
      }
    ],
    "_prefab": null,
@@ -1715,13 +2101,13 @@
    "_name": "Label",
    "_objFlags": 0,
    "_parent": {
      "__id__": 35
      "__id__": 43
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 37
        "__id__": 45
      }
    ],
    "_prefab": null,
@@ -1777,7 +2163,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 36
      "__id__": 44
    },
    "_enabled": true,
    "_materials": [
@@ -1810,7 +2196,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 35
      "__id__": 43
    },
    "_enabled": true,
    "_materials": [
@@ -1842,7 +2228,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 35
      "__id__": 43
    },
    "_enabled": true,
    "alignMode": 0,
@@ -1869,7 +2255,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 34
      "__id__": 42
    },
    "_enabled": true,
    "_normalMaterial": null,
@@ -1878,7 +2264,7 @@
    "zoomScale": 1.2,
    "clickEvents": [
      {
        "__id__": 41
        "__id__": 49
      }
    ],
    "_N$interactable": true,
@@ -1944,7 +2330,7 @@
      "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
    },
    "_N$target": {
      "__id__": 35
      "__id__": 43
    },
    "_id": "49uWVwDf1KkJr2mVBRKYsB"
  },
@@ -1963,17 +2349,17 @@
    "_name": "ButtonAgree",
    "_objFlags": 0,
    "_parent": {
      "__id__": 21
      "__id__": 29
    },
    "_children": [
      {
        "__id__": 43
        "__id__": 51
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 48
        "__id__": 56
      }
    ],
    "_prefab": null,
@@ -2029,20 +2415,20 @@
    "_name": "Background",
    "_objFlags": 512,
    "_parent": {
      "__id__": 42
      "__id__": 50
    },
    "_children": [
      {
        "__id__": 44
        "__id__": 52
      }
    ],
    "_active": true,
    "_components": [
      {
        "__id__": 46
        "__id__": 54
      },
      {
        "__id__": 47
        "__id__": 55
      }
    ],
    "_prefab": null,
@@ -2098,13 +2484,13 @@
    "_name": "Label",
    "_objFlags": 512,
    "_parent": {
      "__id__": 43
      "__id__": 51
    },
    "_children": [],
    "_active": true,
    "_components": [
      {
        "__id__": 45
        "__id__": 53
      }
    ],
    "_prefab": null,
@@ -2160,7 +2546,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 44
      "__id__": 52
    },
    "_enabled": true,
    "_materials": [
@@ -2193,7 +2579,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 43
      "__id__": 51
    },
    "_enabled": true,
    "_materials": [
@@ -2225,7 +2611,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 43
      "__id__": 51
    },
    "_enabled": true,
    "alignMode": 0,
@@ -2252,7 +2638,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 42
      "__id__": 50
    },
    "_enabled": true,
    "_normalMaterial": null,
@@ -2261,7 +2647,7 @@
    "zoomScale": 1.2,
    "clickEvents": [
      {
        "__id__": 49
        "__id__": 57
      }
    ],
    "_N$interactable": true,
@@ -2329,7 +2715,7 @@
      "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
    },
    "_N$target": {
      "__id__": 43
      "__id__": 51
    },
    "_id": "62CS7ZwsJLEJGy27INo7cr"
  },
@@ -2348,7 +2734,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 21
      "__id__": 29
    },
    "_enabled": true,
    "_materials": [
@@ -2380,7 +2766,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 20
      "__id__": 28
    },
    "_enabled": true,
    "alignMode": 1,
@@ -2407,7 +2793,7 @@
    "_name": "",
    "_objFlags": 0,
    "node": {
      "__id__": 20
      "__id__": 28
    },
    "_enabled": true,
    "_id": "a5nVWFNBhKXIbLh/UFwOzY"
@@ -2439,13 +2825,16 @@
    "_enabled": true,
    "nextSceneName": "main",
    "ppNode": {
      "__id__": 20
      "__id__": 28
    },
    "buttonAgree": {
      "__id__": 48
      "__id__": 56
    },
    "buttonCancel": {
      "__id__": 40
      "__id__": 48
    },
    "buttonStartGame": {
      "__id__": 20
    },
    "_id": "b0zOp8p9hF4Ycu6q7wt0hZ"
  },
assets/Script/Logo.ts
@@ -3,6 +3,7 @@
import { Sdk } from "./Sdk/Sdk";
import { SdkToutiao } from "./Sdk/SdkToutiao";
import DataTool from "./Sdk/DataTool";
import Global from "./Global";
const { ccclass, property } = cc._decorator;
@@ -19,10 +20,14 @@
    @property(cc.Button)
    buttonCancel: cc.Button = null;
    @property(cc.Button)
    buttonStartGame: cc.Button = null;
    onLoad() {
        cc.game.setFrameRate(60.01);
        this.ppNode.active = false;
        this.buttonStartGame.node.active = false;
    }
    start() {
@@ -90,7 +95,7 @@
            Userdata.loadUserdata(() => {
                this.scheduleOnce(() => {
                    this.openPrivacyPolicy();
                }, 1);
                }, 2);
            });
        } else {
@@ -118,8 +123,13 @@
    startGame() {
        if (Sdk.isHuawei) {
            Sdk.ins.startGame(() => {
                cc.director.loadScene(this.nextSceneName);
            Sdk.ins.startGame((result) => {
                if (result) {//自动登录成功
                    cc.director.loadScene(this.nextSceneName);
                } else {//显示开始游戏按钮
                    this.buttonStartGame.node.active = true;
                    this.ppNode.active = false;
                }
            });
        } else {
            cc.director.loadScene(this.nextSceneName);
@@ -172,4 +182,10 @@
        this.startGame();
    }
    onClickStartGame() {
        Global.debounceClicks(() => {
            this.startGame();
        })();
    }
}
assets/Script/Sdk/SdkHuawei.ts
@@ -23,8 +23,9 @@
            success: (data) => {
                // 登录成功后,可以存储账号信息。             
                console.log(" game login with real success:" + JSON.stringify(data));
                cb && cb();
                cb && cb(true);
                this.lastShowInterAdTime = Date.now();
                this.getOAID();
                this.reLoadVideo();
@@ -36,13 +37,15 @@
                //此时,建议返回游戏界面,可以让玩家重新进行登录操作。
                if (code == 7004 || code == 2012) {
                    console.log("玩家取消登录,返回游戏界面让玩家重新登录。");
                    cc.director.loadScene('logo');
                    // cc.director.loadScene('logo');
                    cb && cb(false);
                } else
                    //状态码为7021表示玩家取消实名认证。
                    //在中国大陆的情况下,此时需要禁止玩家进入游戏。
                    if (code == 7021) {
                        console.log("The player has canceled identity verification. Forbid the player from entering the game.")
                        cc.director.loadScene('logo');
                        // cc.director.loadScene('logo');
                        cc.game.end();
                    } else {
                        cc.game.end();
                    }
@@ -67,13 +70,11 @@
    //Ads
    showInterAd() {
        cc.log('show InterAd');
        // if (Date.now() - this.lastShowInterAdTime > 30000) {//最少间隔30秒
        //     this.lastShowInterAdTime = Date.now();
        if (Date.now() - this.lastShowInterAdTime > 40000) {//最少间隔40秒
            this.lastShowInterAdTime = Date.now();
        // }
        this.loadInterAd();
            this.loadInterAd();
        }
    }
@@ -83,8 +84,8 @@
        }
        this.interstitialAd = qg.createInterstitialAd({
            adUnitId:
            //    "g2tz5d4wkv" //测试ID
            "q5m5hlquus"//正式ID
                //    "g2tz5d4wkv" //测试ID
                "q5m5hlquus"//正式ID
        });
        this.interstitialAd.load({
            "channelExtras": {
@@ -114,8 +115,8 @@
    reLoadVideo() {
        this.rewardedVideoAd = qg.createRewardedVideoAd({
            adUnitId:
            //    "testx9dtjwj8hp" //测试ID
            "v1gtsb1ga8" //正式ID
                //    "testx9dtjwj8hp" //测试ID
                "v1gtsb1ga8" //正式ID
            ,
            success: (code) => {
                cc.log("ad demo : loadAndShowVideoAd createRewardedVideoAd success");
@@ -159,6 +160,7 @@
        // cb && cb(true);
        rewardCallback = cb;
        this.lastShowInterAdTime = Date.now();
        this.rewardedVideoAd.show();
        this.rewardedVideoAd.load();
    }