ith5cn 1 miesiąc temu
rodzic
commit
c9141cc188
1 zmienionych plików z 3 dodań i 10 usunięć
  1. 3 10
      game.js

+ 3 - 10
game.js

@@ -5,8 +5,7 @@ import {
   onShareAppMessage,
   reportRole,
   payment,
-  getCurrentUserInfo,
-  safeTextCheck
+  getCurrentUserInfo
 } from "./dist/gameSdk.1.0.0.js"
 
 // 初始化skd
@@ -14,8 +13,8 @@ import {
   try {
     let data = {
       version: "1.0.1", // 游戏版本
-      mini_program_id: "wxf290757236471ea9", //测试号id
-      game_id: "311", // 游戏id
+      mini_program_id: "", //测试号id
+      game_id: "", // 游戏id
       game_name: "测试游戏", // 游戏名称
     };
     // 静默授权
@@ -97,11 +96,6 @@ const handleLoginUserInfo = async () => {
   console.log("getCurrentUserInfo", res)
 }
 
-// 文本内容安全检测
-const handleSecCheckText = async () => {
-  const res = await safeTextCheck({ content: "毛泽东", scene: 1 })
-  console.log(res)
-}
 
 function newButtonMap(name, callback, x, y, w = 200, h = 30) {
   return {
@@ -120,7 +114,6 @@ let buttonList = [
   newButtonMap("主动分享", handleShareAppMessage, 10, 260),
   newButtonMap("获取平台登陆用户信息", handleLoginUserInfo, 10, 210),
   newButtonMap("监听分享传参", handleOnShareAppMessage, 10, 310),
-  newButtonMap("文本内容安全检测", handleSecCheckText, 10, 360),
 ];
 
 const canvas = tt.createCanvas();