mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
定时任务添加下次运行时间
This commit is contained in:
@@ -141,7 +141,13 @@ export default class OpenService {
|
||||
});
|
||||
}
|
||||
|
||||
public async authToken({ client_id, client_secret }): Promise<any> {
|
||||
public async authToken({
|
||||
client_id,
|
||||
client_secret,
|
||||
}: {
|
||||
client_id: string;
|
||||
client_secret: string;
|
||||
}): Promise<any> {
|
||||
const token = uuidV4();
|
||||
const expiration = Math.round(Date.now() / 1000) + 2592000; // 2592000 30天
|
||||
return new Promise((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user