Commit a49ce106 by 蒋勇

d

parent d1ac0f9a
...@@ -305,7 +305,7 @@ class UserService extends ServiceBase { ...@@ -305,7 +305,7 @@ class UserService extends ServiceBase {
//身份中的secret验证签名 //身份中的secret验证签名
async jwtsign(plkey, secretstr, opts) { async jwtsign(plkey, secretstr, opts) {
let promise = new Promise(function (resv, rej) { let promise = new Promise(function (resv, rej) {
jwt.sign({exp: Math.floor(Date.now() / 1000) + (1 * 60),iss: plkey}, secretstr, opts, function (err, rtn) { jwt.sign({exp: Math.floor(Date.now() / 1000) + (60 * 60),iss: plkey}, secretstr, opts, function (err, rtn) {
if (err) { if (err) {
rej(err); rej(err);
} else { } else {
......
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