From a972605e1cf8122330de5b6ff53857be130972be Mon Sep 17 00:00:00 2001
From: Spring774 <337905794@qq.com>
Date: Thu, 30 Oct 2025 11:59:53 +0800
Subject: [PATCH] 添加华为广告,界面还需要去除不需要华为的地方

---
 assets/Scene/logo.fire              | 1563 ++++++++++++++++++++++++++++++++++++++++++
 assets/Script/Sdk/SdkHuawei.ts.meta |   10 
 assets/Script/RewardLayer.ts        |   68 +
 assets/Script/Global.ts             |   16 
 assets/Script/Sdk/SdkHuawei.ts      |  165 ++++
 manifest.json                       |    2 
 assets/Script/Logo.ts               |   98 ++
 assets/Script/Game.ts               |  127 +-
 assets/Script/Sdk/Sdk.ts            |    3 
 assets/Script/SkinLayer.ts          |   69 +
 assets/Script/EveryDayLayer.ts      |   45 
 DOC/HuaWei/自检报告.xlsx                |    0 
 12 files changed, 2,016 insertions(+), 150 deletions(-)

diff --git "a/DOC/HuaWei/\350\207\252\346\243\200\346\212\245\345\221\212.xlsx" "b/DOC/HuaWei/\350\207\252\346\243\200\346\212\245\345\221\212.xlsx"
index 255a0d2..dbf5e75 100644
--- "a/DOC/HuaWei/\350\207\252\346\243\200\346\212\245\345\221\212.xlsx"
+++ "b/DOC/HuaWei/\350\207\252\346\243\200\346\212\245\345\221\212.xlsx"
Binary files differ
diff --git a/assets/Scene/logo.fire b/assets/Scene/logo.fire
index ad99b95..4a2ecdc 100644
--- a/assets/Scene/logo.fire
+++ b/assets/Scene/logo.fire
@@ -185,18 +185,21 @@
       },
       {
         "__id__": 18
+      },
+      {
+        "__id__": 20
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 20
+        "__id__": 53
       },
       {
-        "__id__": 21
+        "__id__": 54
       },
       {
-        "__id__": 22
+        "__id__": 55
       }
     ],
     "_prefab": null,
@@ -852,7 +855,8 @@
         "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
       }
     ],
-    "_useOriginalSize": false,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
     "_string": "抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。",
     "_N$string": "抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。",
     "_fontSize": 36,
@@ -862,12 +866,1551 @@
     "_isSystemFontUsed": true,
     "_spacingX": 0,
     "_batchAsBitmap": false,
+    "_styleFlags": 0,
+    "_underlineHeight": 0,
     "_N$horizontalAlign": 1,
     "_N$verticalAlign": 1,
     "_N$fontFamily": "Arial",
     "_N$overflow": 2,
     "_N$cacheMode": 0,
     "_id": "9cyiolm01By5G3Yq+BCmSS"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "ppNode",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 5
+    },
+    "_children": [
+      {
+        "__id__": 21
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 51
+      },
+      {
+        "__id__": 52
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 730,
+      "height": 1310
+    },
+    "_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": "3dDrX2ekVNc4IKlmmq5fON"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "white_bg",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 20
+    },
+    "_children": [
+      {
+        "__id__": 22
+      },
+      {
+        "__id__": 24
+      },
+      {
+        "__id__": 26
+      },
+      {
+        "__id__": 30
+      },
+      {
+        "__id__": 34
+      },
+      {
+        "__id__": 42
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 50
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 500,
+      "height": 800
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        46.125,
+        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": "8cLjDuZolFB69Yh3r55tV/"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Title",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 21
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 23
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 280,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        350,
+        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": "a08okxUvZPlp6NVx/DETLp"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 22
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "欢迎使用快游戏",
+    "_N$string": "欢迎使用快游戏",
+    "_fontSize": 40,
+    "_lineHeight": 40,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_batchAsBitmap": false,
+    "_styleFlags": 1,
+    "_underlineHeight": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_N$cacheMode": 0,
+    "_id": "94MugWebRJNL2YzxMzlerk"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "New Label",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 21
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 25
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 450,
+      "height": 450.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        100,
+        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": "d5b3bZaL9IVYS0V6s55jmU"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "\n      我们郑重承诺重视并保护用户的个人信息。我们秉承“一切以用户价值为依归”的理念,增强您对信息管理的便捷性,保障您的信息及通信安全。我们严格遵守法律法规,遵循以下隐私保护原则,为您提供更加安全可靠的服务。\n        点击“同意”,即表示您同意上述内容及《用户协议》和《隐私协议》。",
+    "_N$string": "\n      我们郑重承诺重视并保护用户的个人信息。我们秉承“一切以用户价值为依归”的理念,增强您对信息管理的便捷性,保障您的信息及通信安全。我们严格遵守法律法规,遵循以下隐私保护原则,为您提供更加安全可靠的服务。\n        点击“同意”,即表示您同意上述内容及《用户协议》和《隐私协议》。",
+    "_fontSize": 28,
+    "_lineHeight": 40,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_batchAsBitmap": false,
+    "_styleFlags": 0,
+    "_underlineHeight": 0,
+    "_N$horizontalAlign": 0,
+    "_N$verticalAlign": 0,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 3,
+    "_N$cacheMode": 0,
+    "_id": "e0DWe/hGZBjbkq6KNJRqO6"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "New Label",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 21
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 27
+      },
+      {
+        "__id__": 28
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 25,
+      "b": 246,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 300,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        -70,
+        -155.468,
+        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": "65ESqp69tNlK9S6agHuSB+"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 26
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "点击查看《用户协议》",
+    "_N$string": "点击查看《用户协议》",
+    "_fontSize": 30,
+    "_lineHeight": 40,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_batchAsBitmap": false,
+    "_styleFlags": 4,
+    "_underlineHeight": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_N$cacheMode": 0,
+    "_id": "44LtB6fGVHNJmVshWtWHtg"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 26
+    },
+    "_enabled": true,
+    "_normalMaterial": null,
+    "_grayMaterial": null,
+    "duration": 0.1,
+    "zoomScale": 1.2,
+    "clickEvents": [
+      {
+        "__id__": 29
+      }
+    ],
+    "_N$interactable": true,
+    "_N$enableAutoGrayEffect": false,
+    "_N$transition": 3,
+    "transition": 3,
+    "_N$normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "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": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_N$normalSprite": null,
+    "_N$pressedSprite": null,
+    "pressedSprite": null,
+    "_N$hoverSprite": null,
+    "hoverSprite": null,
+    "_N$disabledSprite": null,
+    "_N$target": null,
+    "_id": "c1wlabKZVI97/gT2mTEOkk"
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 5
+    },
+    "component": "",
+    "_componentId": "af275ecUXVIvryJqHF/oRNF",
+    "handler": "onUserProtocolLinkClicked",
+    "customEventData": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "New Label copy",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 21
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 31
+      },
+      {
+        "__id__": 32
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 25,
+      "b": 246,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 300,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        -70,
+        -215.468,
+        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": "cecmcsyANKerpDgVO3lLfc"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 30
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "点击查看《隐私协议》",
+    "_N$string": "点击查看《隐私协议》",
+    "_fontSize": 30,
+    "_lineHeight": 40,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_batchAsBitmap": false,
+    "_styleFlags": 4,
+    "_underlineHeight": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_N$cacheMode": 0,
+    "_id": "52yylfjrFN/4WgTvqW+dSW"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 30
+    },
+    "_enabled": true,
+    "_normalMaterial": null,
+    "_grayMaterial": null,
+    "duration": 0.1,
+    "zoomScale": 1.2,
+    "clickEvents": [
+      {
+        "__id__": 33
+      }
+    ],
+    "_N$interactable": true,
+    "_N$enableAutoGrayEffect": false,
+    "_N$transition": 3,
+    "transition": 3,
+    "_N$normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "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": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_N$normalSprite": null,
+    "_N$pressedSprite": null,
+    "pressedSprite": null,
+    "_N$hoverSprite": null,
+    "hoverSprite": null,
+    "_N$disabledSprite": null,
+    "_N$target": null,
+    "_id": "01RphV/wZCzbDakrgz7J7m"
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 5
+    },
+    "component": "",
+    "_componentId": "af275ecUXVIvryJqHF/oRNF",
+    "handler": "onPrivacyPolicyLinkClicked",
+    "customEventData": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "ButtonCancel",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 21
+    },
+    "_children": [
+      {
+        "__id__": 35
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 40
+      }
+    ],
+    "_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": [
+        -110,
+        -329.959,
+        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": "41eRm+huBM3Zue9iTuBIVU"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Background",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 34
+    },
+    "_children": [
+      {
+        "__id__": 36
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 38
+      },
+      {
+        "__id__": 39
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 200,
+      "g": 200,
+      "b": 200,
+      "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": "66jF6KqihGK4F86HWmkMgb"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 35
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 37
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 40
+    },
+    "_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": "eewMdx52pGLIRGrPEfN7fL"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 36
+    },
+    "_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": 1,
+    "_N$cacheMode": 1,
+    "_id": "0731RC++lDzoHIdlEWnAfx"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 35
+    },
+    "_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": "f2Ok9PyqFO9qfGlCzI0H93"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 35
+    },
+    "_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": "a1LN+fKMJLZIDu/tXYw8YN"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 34
+    },
+    "_enabled": true,
+    "_normalMaterial": null,
+    "_grayMaterial": null,
+    "duration": 0.1,
+    "zoomScale": 1.2,
+    "clickEvents": [
+      {
+        "__id__": 41
+      }
+    ],
+    "_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__": 35
+    },
+    "_id": "49uWVwDf1KkJr2mVBRKYsB"
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 5
+    },
+    "component": "",
+    "_componentId": "af275ecUXVIvryJqHF/oRNF",
+    "handler": "onPPCancel",
+    "customEventData": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "ButtonAgree",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 21
+    },
+    "_children": [
+      {
+        "__id__": 43
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 48
+      }
+    ],
+    "_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": [
+        110,
+        -330,
+        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": "b9fFtqKOZFlqPJje9qoenA"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Background",
+    "_objFlags": 512,
+    "_parent": {
+      "__id__": 42
+    },
+    "_children": [
+      {
+        "__id__": 44
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 46
+      },
+      {
+        "__id__": 47
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 242,
+      "g": 144,
+      "b": 9,
+      "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": "8aOm4T6hxEPZLfy8J94NSV"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 512,
+    "_parent": {
+      "__id__": 43
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 45
+      }
+    ],
+    "_prefab": null,
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 40
+    },
+    "_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": "8ap/7FI4dLkrzdAzqg5hEx"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 44
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "同意",
+    "_N$string": "同意",
+    "_fontSize": 35,
+    "_lineHeight": 40,
+    "_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": 1,
+    "_N$cacheMode": 1,
+    "_id": "73cTQ6cuhMTY91XmVX6MJY"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 43
+    },
+    "_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": "bdWtNtenhGeoidVIYSg5Lz"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 43
+    },
+    "_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": "36oqIpFKRLbqe07Po/i5OZ"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 42
+    },
+    "_enabled": true,
+    "_normalMaterial": null,
+    "_grayMaterial": null,
+    "duration": 0.1,
+    "zoomScale": 1.2,
+    "clickEvents": [
+      {
+        "__id__": 49
+      }
+    ],
+    "_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": {
+      "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
+    },
+    "_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__": 43
+    },
+    "_id": "62CS7ZwsJLEJGy27INo7cr"
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 5
+    },
+    "component": "",
+    "_componentId": "af275ecUXVIvryJqHF/oRNF",
+    "handler": "onPPAgree",
+    "customEventData": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 21
+    },
+    "_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": "52pjpCBr1AH7hK05tLaDxt"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 20
+    },
+    "_enabled": true,
+    "alignMode": 1,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": -5,
+    "_right": -5,
+    "_top": -15,
+    "_bottom": -15,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 2,
+    "_originalHeight": 2,
+    "_id": "3fSh8hocpBNYyQZRcYlKqL"
+  },
+  {
+    "__type__": "cc.BlockInputEvents",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 20
+    },
+    "_enabled": true,
+    "_id": "a5nVWFNBhKXIbLh/UFwOzY"
   },
   {
     "__type__": "cc.Canvas",
@@ -895,6 +2438,15 @@
     },
     "_enabled": true,
     "nextSceneName": "main",
+    "ppNode": {
+      "__id__": 20
+    },
+    "buttonAgree": {
+      "__id__": 48
+    },
+    "buttonCancel": {
+      "__id__": 40
+    },
     "_id": "b0zOp8p9hF4Ycu6q7wt0hZ"
   },
   {
@@ -921,6 +2473,7 @@
     "_isAbsHorizontalCenter": true,
     "_isAbsVerticalCenter": true,
     "_originalWidth": 0,
-    "_originalHeight": 0
+    "_originalHeight": 0,
+    "_id": "773bULJ8lOiZW5dEbsGu/t"
   }
 ]
\ No newline at end of file
diff --git a/assets/Script/EveryDayLayer.ts b/assets/Script/EveryDayLayer.ts
index 1da675f..9b14481 100644
--- a/assets/Script/EveryDayLayer.ts
+++ b/assets/Script/EveryDayLayer.ts
@@ -140,30 +140,37 @@
     }
 
     onClickClaim() {
-        SoundManager.playButton();
-        this.claimReward();
-
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
+            this.claimReward();
+        }, 'EveryDayLayer-onClickClaim');
     }
 
     onClickDouble() {
-        SoundManager.playButton();
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
+            let isGot = false;
 
-        if (Sdk.isToutiao){
-            SdkToutiao.showRewardVideoAd(()=>{
-                this.claimReward(true);
-            }, ()=>{
-                Global.showTip('广告展示失败,请稍后重试!');
-            });
-        }else{
-            Sdk.ins.showVideoAd((res) => {
-                if (res) {
+            if (Sdk.isToutiao) {
+                SdkToutiao.showRewardVideoAd(() => {
                     this.claimReward(true);
-                } else {
-                    Global.showTip('No Ads ready!');
-                }
-            });
-        }
+                }, () => {
+                    Global.showTip('广告展示失败,请稍后重试!');
+                });
+            } else {
+                Sdk.ins.showVideoAd((res) => {
+                    if (res) {
+                        if (!isGot) {
+                            isGot = true;
+                            this.claimReward(true);
+                        }
+                    } else {
+                        Global.showTip('广告展示失败,请稍后重试!');
+                        // Global.showTip('No Ads ready!');
+                    }
+                });
+            }
 
-        
+        }, 'EveryDayLayer-onClickDouble');
     }
 }
diff --git a/assets/Script/Game.ts b/assets/Script/Game.ts
index 42f6690..d43f640 100644
--- a/assets/Script/Game.ts
+++ b/assets/Script/Game.ts
@@ -69,7 +69,7 @@
     }
 
     updateGems() {
-        if (this && this.gemsLabel){
+        if (this && this.gemsLabel) {
             this.gemsLabel.string = Userdata.Gem.toString();
         }
     }
@@ -94,7 +94,7 @@
         });
 
         if (Sdk.isToutiao) {
-            SdkToutiao.stopRecord(()=>{
+            SdkToutiao.stopRecord(() => {
                 SdkToutiao.startRecord();
             });
         }
@@ -238,74 +238,87 @@
     }
 
     onClickPropShoot() {
-        SoundManager.playButton();
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
 
-        if (Userdata.Gem >= Global.PROP_SHOOT_COST) {
-            Userdata.addGem(-Global.PROP_SHOOT_COST);
-            this.updateGems();
-            this.playground.pickupProp(PROP_TYPE.SHOOT3);
-            Userdata.saveUserdata();
-        } else {
-            Global.showTip('钻石不足');
-            this.showShop();
-        }
+            if (Userdata.Gem >= Global.PROP_SHOOT_COST) {
+                Userdata.addGem(-Global.PROP_SHOOT_COST);
+                this.updateGems();
+                this.playground.pickupProp(PROP_TYPE.SHOOT3);
+                Userdata.saveUserdata();
+            } else {
+                Global.showTip('钻石不足');
+                this.showShop();
+            }
+        }, 'Game-onClickPropShoot');
     }
 
     onClickPropTimes() {
-        SoundManager.playButton();
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
 
-        if (Userdata.Gem >= Global.PROP_TIMES_COST) {
-            Userdata.addGem(-Global.PROP_TIMES_COST);
-            this.updateGems();
-            this.playground.pickupProp(PROP_TYPE.TIMES3);
-            Userdata.saveUserdata();
-        } else {
-            Global.showTip('钻石不足');
-            this.showShop();
-        }
+            if (Userdata.Gem >= Global.PROP_TIMES_COST) {
+                Userdata.addGem(-Global.PROP_TIMES_COST);
+                this.updateGems();
+                this.playground.pickupProp(PROP_TYPE.TIMES3);
+                Userdata.saveUserdata();
+            } else {
+                Global.showTip('钻石不足');
+                this.showShop();
+            }
+        }, 'Game-onClickPropTimes');
     }
 
     onClickPropWall() {
-        SoundManager.playButton();
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
 
-        if (Userdata.Gem >= Global.PROP_WALL_COST) {
-            Userdata.addGem(-Global.PROP_WALL_COST);
-            this.updateGems();
-            this.playground.pickupProp(PROP_TYPE.WALL);
-            Userdata.saveUserdata();
-        } else {
-            Global.showTip('钻石不足');
-            this.showShop();
-        }
+            if (Userdata.Gem >= Global.PROP_WALL_COST) {
+                Userdata.addGem(-Global.PROP_WALL_COST);
+                this.updateGems();
+                this.playground.pickupProp(PROP_TYPE.WALL);
+                Userdata.saveUserdata();
+            } else {
+                Global.showTip('钻石不足');
+                this.showShop();
+            }
+        }, 'Game-onClickPropWall');
     }
 
     onClickWatchAds() {
-        SoundManager.playButton();
-
-        if (Sdk.isToutiao) {
-            SdkToutiao.pauseRecord();
-            SdkToutiao.showRewardVideoAd(() => {
-                this.showResultLayer(true, true);
-                Global.showTip('成功跳过关卡 !!');
-            }, () => {
-                Global.showTip('广告展示失败,请稍后重试!');
-                SdkToutiao.resumeRecord();
-            });
-        } else {
-            Sdk.ins.showVideoAd((res) => {
-                if (res) {
-                    // Userdata.addGem(Global.WATCH_VIDEO_GEM);
-                    // Global.showTip('Got ' + Global.WATCH_VIDEO_GEM + ' gems.');
-                    // this.updateGems();
-                    // Userdata.saveUserdata();
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
+            let isGot = false;
+            if (Sdk.isToutiao) {
+                SdkToutiao.pauseRecord();
+                SdkToutiao.showRewardVideoAd(() => {
                     this.showResultLayer(true, true);
-                    Global.showTip('Level Skipped !!');
-                } else {
-                    Global.showTip('Ads not ready!');
-                }
-            });
-        }
-
+                    Global.showTip('成功跳过关卡 !!');
+                }, () => {
+                    Global.showTip('广告展示失败,请稍后重试!');
+                    SdkToutiao.resumeRecord();
+                });
+            } else {
+                Sdk.ins.showVideoAd((res) => {
+                    if (res) {
+                        // Userdata.addGem(Global.WATCH_VIDEO_GEM);
+                        // Global.showTip('Got ' + Global.WATCH_VIDEO_GEM + ' gems.');
+                        // this.updateGems();
+                        // Userdata.saveUserdata();
+                        if (!isGot) {
+                            isGot = true;
+                            this.showResultLayer(true, true);
+                            Global.showTip('成功跳过关卡 !!');
+                            // Global.showTip('Level Skipped !!');
+                        }
+                    } else {
+                        //Global.showTip('Ads not ready!');
+                        Global.showTip('广告展示失败,请稍后重试!');
+                    }
+                });
+            }
+        }, 'Game-onClickWatchAds');
     }
 
+
 }
diff --git a/assets/Script/Global.ts b/assets/Script/Global.ts
index ef430f6..1304a48 100644
--- a/assets/Script/Global.ts
+++ b/assets/Script/Global.ts
@@ -163,4 +163,20 @@
         });
     }
 
+    private static debounceStates: { [key: string]: boolean } = {};
+    private static debounceTimer: { [key: string]: number } = {};
+    //防快速点击函数
+    static debounceClicks = (callback: () => void, identifier = 'default', delay = 1000) => {
+        return () => {
+            if (!Global.debounceStates[identifier]) {
+                Global.debounceStates[identifier] = true;
+                Global.debounceTimer[identifier] = setTimeout(() => {
+                    Global.debounceStates[identifier] = false;
+                    clearTimeout(Global.debounceTimer[identifier]);
+                }, delay);
+                callback();
+            }
+        };
+    };
+
 }
diff --git a/assets/Script/Logo.ts b/assets/Script/Logo.ts
index baab158..476ce5c 100644
--- a/assets/Script/Logo.ts
+++ b/assets/Script/Logo.ts
@@ -12,12 +12,23 @@
     @property(cc.String)
     nextSceneName: string = null;
 
+    @property(cc.Node)
+    ppNode: cc.Node = null;//PrivacyPolicy
+    @property(cc.Button)
+    buttonAgree: cc.Button = null;
+    @property(cc.Button)
+    buttonCancel: cc.Button = null;
+
     onLoad() {
         cc.game.setFrameRate(60.01);
+
+        this.ppNode.active = false;
     }
 
     start() {
         if (Sdk.isToutiao) {
+            this.loadNextScene();
+        } else if (Sdk.isHuawei) {
             this.loadNextScene();
         } else {
             Sdk.ins.startGame(() => {
@@ -50,35 +61,40 @@
                                 tt.showToast({
                                     title: "同步数据成功!",
                                     duration: 2000
-                                  });
+                                });
                             } else {//没有数据同步全部数据到服务器
                                 if (data.anonymous_openid && Userdata.Stars > 0) {
-                                    DataTool.setAsync(data.anonymous_openid, Userdata.getAllToutiaoData(), (res)=>{
-                                        if (res){
+                                    DataTool.setAsync(data.anonymous_openid, Userdata.getAllToutiaoData(), (res) => {
+                                        if (res) {
                                             tt.showToast({
                                                 title: "进度保存成功!",
                                                 duration: 2000
-                                              });
+                                            });
                                         }
                                     });
                                 }
                             }
-                        }else{
+                        } else {
                             console.log('result = ', result);
                             console.log('data = ', data);
                             tt.showToast({
                                 title: "同步数据失败!",
                                 duration: 2000
-                              });
+                            });
                         }
                         this.toutiaoGoNext();
                     });
                 });
             });
-        } else {
+        } else if (Sdk.isHuawei) {
             Userdata.loadUserdata(() => {
-                cc.director.loadScene(this.nextSceneName);
+                this.scheduleOnce(() => {
+                    this.openPrivacyPolicy();
+                }, 1);
+
             });
+        } else {
+            this.startGame();
         }
     }
 
@@ -90,4 +106,70 @@
         SdkToutiao.openShareMenu();
         SdkToutiao.showFavoriteGuide();
     }
+
+    openPrivacyPolicy() {
+        //如果privacy_policy值不为true,则弹出隐私政策提示框
+        if ((cc.sys.localStorage.getItem("privacy_policy")) !== "true") {
+            this.ppNode.active = true;
+        } else {
+            this.startGame();
+        }
+    }
+
+    startGame() {
+        if (Sdk.isHuawei) {
+            Sdk.ins.startGame(() => {
+                cc.director.loadScene(this.nextSceneName);
+            });
+        } else {
+            cc.director.loadScene(this.nextSceneName);
+        }
+    }
+
+    onUserProtocolLinkClicked() {
+        qg && qg.openDeeplink({
+            uri: 'https://www.yujigames.com/userdata_cn.html',
+            params: {
+                ___PARAM_LAUNCH_NATIVE_FLAG___: 'newTask'
+            }
+        });
+    }
+
+    onPrivacyPolicyLinkClicked() {
+        qg && qg.openDeeplink({
+            uri: 'https://www.yujigames.com/privacy_cn.html',
+            params: {
+                ___PARAM_LAUNCH_NATIVE_FLAG___: 'newTask'
+            }
+        });
+    }
+
+    onPPCancel() {
+        this.buttonCancel.enabled = false;
+        this.buttonAgree.enabled = false;
+        cc.sys.localStorage.removeItem("privacy_policy");
+        cc.sys.localStorage.setItem("privacy_policy", "false");
+        setTimeout(function () {
+            qg && qg.exitApplication({
+                success: function () {
+                    console.log("exitApplication success");
+                },
+                fail: function () {
+                    console.log("exitApplication fail");
+                },
+                complete: function () {
+                    console.log("exitApplication complete");
+                }
+            });
+        }, 500);
+    }
+
+    onPPAgree() {
+        this.buttonCancel.enabled = false;
+        this.buttonAgree.enabled = false;
+        cc.sys.localStorage.removeItem("privacy_policy");
+        cc.sys.localStorage.setItem("privacy_policy", "true");
+
+        this.startGame();
+    }
 }
diff --git a/assets/Script/RewardLayer.ts b/assets/Script/RewardLayer.ts
index e7494a4..4006b69 100644
--- a/assets/Script/RewardLayer.ts
+++ b/assets/Script/RewardLayer.ts
@@ -17,20 +17,22 @@
     eventNode: cc.Node = null;
 
     onClickClose() {
-        SoundManager.playButton();
-        this.cliamReward(1);
-        this.hide();
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
+            this.cliamReward(1);
+            this.hide();
+        }, 'RewardLayer-onClickClose');
     }
 
     hide() {
         this.node.destroy();
     }
 
-    onDisable(){
+    onDisable() {
         Userdata.saveUserdata();
     }
 
-    setEventNode(node: cc.Node){
+    setEventNode(node: cc.Node) {
         this.eventNode = node;
     }
 
@@ -49,34 +51,38 @@
     }
 
     onClickCliam() {
-        SoundManager.playButton();
+        Global.debounceClicks(() => {
+            SoundManager.playButton();
 
-        if (this.isGot) {
-            return;
-        }
+            if (this.isGot) {
+                return;
+            }
 
-        if (Sdk.isToutiao) {
-            SdkToutiao.showRewardVideoAd(() => {
-                if (!this.isGot){
-                    this.isGot = true;
-                    this.cliamReward(5);
-                    this.hide();
-                }
-            }, () => {
-                Global.showTip('广告展示失败, 请稍后重试!!');
-            });
-        } else {
-            Sdk.ins.showVideoAd((res) => {
-                if (res) {
-                    this.isGot = true;
-                    this.cliamReward(5);
-                    this.hide();
-                } else {
-                    Global.showTip('No ads ready!!');
-                }
-            });
-        }
+            if (Sdk.isToutiao) {
+                SdkToutiao.showRewardVideoAd(() => {
+                    if (!this.isGot) {
+                        this.isGot = true;
+                        this.cliamReward(5);
+                        this.hide();
+                    }
+                }, () => {
+                    Global.showTip('广告展示失败, 请稍后重试!!');
+                });
+            } else {
+                Sdk.ins.showVideoAd((res) => {
+                    if (res) {
+                        if (!this.isGot) {
+                            this.isGot = true;
+                            this.cliamReward(5);
+                            this.hide();
+                        }
+                    } else {
+                        Global.showTip('广告展示失败, 请稍后重试!!');
+                        // Global.showTip('No ads ready!!');
+                    }
+                });
+            }
 
-
+        }, 'RewardLayer-onClickCliam');
     }
 }
diff --git a/assets/Script/Sdk/Sdk.ts b/assets/Script/Sdk/Sdk.ts
index 3282804..60b9760 100644
--- a/assets/Script/Sdk/Sdk.ts
+++ b/assets/Script/Sdk/Sdk.ts
@@ -31,6 +31,9 @@
     public static get isToutiao(): boolean {
         return cc.sys.platform == cc.sys.WECHAT_GAME && typeof window.tt !== 'undefined';
     }
+    public static get isHuawei(): boolean {
+        return cc.sys.platform == cc.sys.HUAWEI_GAME && typeof qg !== 'undefined';
+    }
 
     public static get isFB(): boolean {
         return typeof FBInstant !== 'undefined';
diff --git a/assets/Script/Sdk/SdkHuawei.ts b/assets/Script/Sdk/SdkHuawei.ts
new file mode 100644
index 0000000..910e0e1
--- /dev/null
+++ b/assets/Script/Sdk/SdkHuawei.ts
@@ -0,0 +1,165 @@
+
+
+var rewardCallback = null;
+export class SdkHuawei {
+
+    private lastShowInterAdTime: number = 0;
+
+    private static interstitialAd = null;
+    private static rewardedVideoAd = null;
+    private static interstitialAdLoaded: boolean = false;
+
+    /**
+     * 开始游戏
+     * @param cb 
+     */
+    static startGame(cb?: Function): void {
+        cc.log('SdkHuawei startGame.');
+
+        qg.gameLoginWithReal({
+            forceLogin: 1,
+            appid: "115744405",
+            success: (data) => {
+                // 登录成功后,可以存储账号信息。             
+                console.log(" game login with real success:" + JSON.stringify(data));
+                cb && cb();
+
+                this.getOAID();
+
+                this.reLoadVideo();
+            },
+            fail: function (data, code) {
+                console.log("game login with real fail:" + data + ", code:" + code);
+                //根据状态码处理游戏的逻辑。
+                //状态码为7004或者2012,表示玩家取消登录。
+                //此时,建议返回游戏界面,可以让玩家重新进行登录操作。
+                if (code == 7004 || code == 2012) {
+                    console.log("玩家取消登录,返回游戏界面让玩家重新登录。");
+                    cc.director.loadScene('logo');
+                }else
+                //状态码为7021表示玩家取消实名认证。
+                //在中国大陆的情况下,此时需要禁止玩家进入游戏。
+                if (code == 7021) {
+                    console.log("The player has canceled identity verification. Forbid the player from entering the game.")
+                    cc.director.loadScene('logo');
+                }else{
+                    cc.game.end();
+                }
+            }
+        });
+    }
+
+    static getOAID() {
+        "function" == typeof qg.getOAID && qg.getOAID({
+            success: function (ret) {
+                console.log("qg.getOAID success :" + JSON.stringify(ret));
+            },
+            fail: function (errMsg, errCode) {
+                console.log("qg.getOAID fail " + errCode + ': ' + errMsg)
+            },
+            complete: function () {
+                console.log("qg.getOAID complete")
+            }
+        })
+    }
+
+    //Ads
+    static showInterAd() {
+        cc.log('show InterAd');
+        // if (Date.now() - this.lastShowInterAdTime > 30000) {//最少间隔30秒
+        //     this.lastShowInterAdTime = Date.now();
+
+
+        // }
+
+        this.loadInterAd();
+
+    }
+
+    static loadInterAd() {
+        if (this.interstitialAd) {
+            this.interstitialAd.destroy();
+        }
+        this.interstitialAd = qg.createInterstitialAd({
+            adUnitId:
+            "g2tz5d4wkv" //测试ID
+            //"q5m5hlquus"//正式ID
+        });
+        this.interstitialAd.load({
+            "channelExtras": {
+                "customerChannel": "1"
+            }
+        });
+        this.interstitialAd.onLoad((data) => {
+            cc.log(
+                "requestImageAdAndShow onLoad data= " + JSON.stringify(data)
+            );
+            this.interstitialAd.show();
+        });
+        this.interstitialAd.onError(err => {
+            cc.log(" requestImageAdAndShow on error = " + JSON.stringify(err));
+        });
+        this.interstitialAd.onClose(() => {
+            cc.log("requestImageAdAndShow interstitialAd closed");
+            this.interstitialAd.destroy(() => {
+                cc.log("destroy");
+            });
+        });
+        this.interstitialAd.onClick(() => {
+            cc.log("requestImageAdAndShow interstitialAd clicked");
+        });
+    }
+
+    static reLoadVideo() {
+        this.rewardedVideoAd = qg.createRewardedVideoAd({
+            adUnitId:
+            "testx9dtjwj8hp" //测试ID
+            //"v1gtsb1ga8" //正式ID
+            ,
+            success: (code) => {
+                cc.log("ad demo : loadAndShowVideoAd createRewardedVideoAd success");
+            },
+            fail: (data, code) => {
+                cc.log("ad demo : loadAndShowVideoAd createRewardedVideoAd fail: " + data + "," + code);
+            },
+            complete: () => {
+                cc.log("ad demo : loadAndShowVideoAd createRewardedVideoAd complete");
+            }
+        });
+        this.rewardedVideoAd.onLoad(() => {
+            cc.log('ad demo :ad loaded.');
+        })
+
+        this.rewardedVideoAd.onError((e) => {
+            cc.error('load ad error:' + JSON.stringify(e));
+            const errCode = e.errCode
+            const errMsg = e.errMsg
+
+            rewardCallback && rewardCallback(false);
+        })
+        this.rewardedVideoAd.onClose((res) => {
+            // if(!this.rewardedVideoAd) return
+            // this.rewardedVideoAd.offClose(null);
+            cc.log('ad onClose: ' + res.isEnded)
+            // this.rewardedVideoAd.offLoad(null);
+            if (res && res.isEnded || res === undefined) {
+                cc.log('播放激励视频结束,给予奖励');
+                rewardCallback && rewardCallback(true);
+            } else {
+                cc.log('播放没结束,不给予奖励');
+                rewardCallback && rewardCallback(false);
+            }
+        })
+        this.rewardedVideoAd.load()
+    }
+
+    static showVideoAd(cb?: (result: boolean) => void) {
+        cc.log('show VideoAd');
+        // cb && cb(true);
+
+        rewardCallback = cb;
+        this.rewardedVideoAd.show();
+        this.rewardedVideoAd.load();
+    }
+
+}
diff --git a/assets/Script/Sdk/SdkHuawei.ts.meta b/assets/Script/Sdk/SdkHuawei.ts.meta
new file mode 100644
index 0000000..b8426eb
--- /dev/null
+++ b/assets/Script/Sdk/SdkHuawei.ts.meta
@@ -0,0 +1,10 @@
+{
+  "ver": "1.1.0",
+  "uuid": "bac74a60-2cdc-4ae4-af83-9990aab1d502",
+  "importer": "typescript",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}
\ No newline at end of file
diff --git a/assets/Script/SkinLayer.ts b/assets/Script/SkinLayer.ts
index f673492..01ee6ce 100644
--- a/assets/Script/SkinLayer.ts
+++ b/assets/Script/SkinLayer.ts
@@ -111,38 +111,49 @@
     }
 
     onClickWatchAd() {
-        if (Sdk.isToutiao) {
-            SdkToutiao.showRewardVideoAd(() => {
-                Userdata.giveVideoRewardRuby();
-                Global.showTip("获得 " + Global.WATCH_VIDEO_GEM + " 钻石 !");
-                this.updateGems();
+        Global.debounceClicks(() => {
+            let isGot = false;
+            if (Sdk.isToutiao) {
+                SdkToutiao.showRewardVideoAd(() => {
+                    if (!isGot) {
+                        Userdata.giveVideoRewardRuby();
+                        // Global.showTip("Got " + Global.WATCH_VIDEO_GEM + " Gems !");
+                        Global.showTip("获得 " + Global.WATCH_VIDEO_GEM + " 钻石 !");
+                        this.updateGems();
 
-                Userdata.saveUserdata();
-                let node = cc.find('Canvas');
-                if (node) {
-                    node.emit('updateInfo');
+                        Userdata.saveUserdata();
+                        let node = cc.find('Canvas');
+                        if (node) {
+                            node.emit('updateInfo');
+                        }
+                    }
+                }, () => {
+                    Global.showTip('广告展示失败, 请稍后重试!');
+                });
+
+                return;
+            }
+
+            Sdk.ins.showVideoAd(result => {
+                if (result) {
+                    if (!isGot) {
+                        Userdata.giveVideoRewardRuby();
+                        // Global.showTip("Got " + Global.WATCH_VIDEO_GEM + " Gems !");
+                        Global.showTip("获得 " + Global.WATCH_VIDEO_GEM + " 钻石 !");
+                        this.updateGems();
+
+                        Userdata.saveUserdata();
+                        let node = cc.find('Canvas');
+                        if (node) {
+                            node.emit('updateInfo');
+                        }
+                    }
+                } else {
+                    Global.showTip('广告展示失败, 请稍后重试!');
+                    // Global.showTip('Ads not ready!');
                 }
-            }, () => {
-                Global.showTip('广告展示失败, 请稍后重试!');
             });
 
-            return;
-        }
-
-        Sdk.ins.showVideoAd(result => {
-            if (result) {
-                Userdata.giveVideoRewardRuby();
-                Global.showTip("Got " + Global.WATCH_VIDEO_GEM + " Gems !");
-                this.updateGems();
-
-                Userdata.saveUserdata();
-                let node = cc.find('Canvas');
-                if (node) {
-                    node.emit('updateInfo');
-                }
-            } else {
-                Global.showTip('Ads not ready!');
-            }
-        });
+        }, 'SkinLayer-onClickWatchAd');
     }
 }
diff --git a/manifest.json b/manifest.json
index 0d5d870..c10be62 100644
--- a/manifest.json
+++ b/manifest.json
@@ -17,5 +17,5 @@
           "orientation":"portrait",
           "fullScreen":true
     },
-    "gameGridSlotId": "xxx"
+    "gameGridSlotId": "j79gukslrn"
 }
\ No newline at end of file

--
Gitblit v1.9.1