Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
c93b8742
Commit
c93b8742
authored
May 11, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ticket feishu
parent
e5170188
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
center-channel/app/base/db/cache/feishuAppTicketCache.js
+2
-2
center-channel/app/base/service/impl/utilsSve/utilsFeishuSve.js
+8
-0
No files found.
center-channel/app/base/db/cache/feishuAppTicketCache.js
View file @
c93b8742
...
...
@@ -2,7 +2,7 @@ const CacheBase=require("../cache.base");
const
system
=
require
(
"../../system"
);
// const OpenplatformWxop = require("../../wxop/impl/openplatformWxop");
/**
* 飞书小程序--AppTicket缓存--有效时间
71
00s
* 飞书小程序--AppTicket缓存--有效时间
35
00s
*/
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
,
71
00
);
await
this
.
redisClient
.
setWithEx
(
key
,
appTicket
,
35
00
);
}
return
appTicket
;
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsFeishuSve.js
View file @
c93b8742
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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment