Commit c93b8742 by 庄冰

ticket feishu

parent e5170188
......@@ -2,7 +2,7 @@ const CacheBase=require("../cache.base");
const system=require("../../system");
// const OpenplatformWxop = require("../../wxop/impl/openplatformWxop");
/**
* 飞书小程序--AppTicket缓存--有效时间7100s
* 飞书小程序--AppTicket缓存--有效时间3500s
*/
class feishuAppTicketCache extends CacheBase{
constructor(){
......@@ -24,7 +24,7 @@ class feishuAppTicketCache extends CacheBase{
async set(appTicket){
var key = this.prefix;
if(appTicket){
await this.redisClient.setWithEx(key,appTicket,7100);
await this.redisClient.setWithEx(key,appTicket,3500);
}
return appTicket;
}
......
const system = require("../../../system");
var settings = require("../../../../config/settings");
// var crypto = require('crypto');
/**
* 飞书小程序相关接口
*/
......@@ -12,6 +13,13 @@ class UtilsFeishuService{
app_secret:"zL1uRrWFzwhFbLWZrmSuCh72JGjJXQg0"
}
};
//飞书事件消息通知解密
// async notifyDecrypt(str){
// var pobj = {};
// str = str.toString('utf8');
// return pobj;
// }
//飞书通知
async notify(pobj){
if(!pobj || !pobj.type){
......
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