tencent-connect / bot-node-sdk

QQ频道机器人 NODESDK
MIT License
103 stars 33 forks source link

适配AppSecret鉴权方式 #84

Open yanhy2000 opened 6 months ago

yanhy2000 commented 6 months ago

如题,能否增加该鉴权方式,使用旧demo遇到token错误问题

data: {
      message: 'Token错误',
      code: 11242,
      err_code: 40012002,
      trace_id: '24e24b98770ce35841348c3d040925cb'
    }
function BotInit(conf) {
  // console.log(conf);
  var bot = botObj.createOpenAPI(conf);
  var bot_ws = botObj.createWebsocket(conf);
  init_log("机器人实例初始化完成!");
  return { bot, bot_ws };
}