Commit d1828780 by 宋毅

tj

parent c254621c
...@@ -65,7 +65,7 @@ class UtilsUserSve extends AppServiceBase { ...@@ -65,7 +65,7 @@ class UtilsUserSve extends AppServiceBase {
} }
var timeStamp = Date.now(); var timeStamp = Date.now();
var nonceStr = await this.getBusUid("sy"); var nonceStr = await this.getBusUid("sy");
var nowPageUrl = pobj.actionBody && pobj.actionBody.nowPageUrl ? pobj.actionBody.nowPageUrl : "http://alitm.qifu.gongsibao.com"; var nowPageUrl = "http://alitm.qifu.gongsibao.com/";//pobj.actionBody && pobj.actionBody.nowPageUrl ? pobj.actionBody.nowPageUrl : "http://alitm.qifu.gongsibao.com/";
var parameters = { var parameters = {
agentId: item.agent_id, agentId: item.agent_id,
corpId: item.corp_id, corpId: item.corp_id,
...@@ -140,14 +140,14 @@ class UtilsUserSve extends AppServiceBase { ...@@ -140,14 +140,14 @@ class UtilsUserSve extends AppServiceBase {
var sha1 = cryptoJS.createHash('sha1'); var sha1 = cryptoJS.createHash('sha1');
sha1.update(plainTex, 'utf8'); sha1.update(plainTex, 'utf8');
let signature = sha1.digest('hex'); let signature = sha1.digest('hex');
this.logCtl.info({ this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id : "", appid: pobj.appInfo ? pobj.appInfo.uapp_id : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "", appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "",
op: "center-app/app/base/service/impl/utilsSve/utilsuserSve.js/getJsApiSingnature", op: "center-app/app/base/service/impl/utilsSve/utilsuserSve.js/getJsApiSingnature",
content: "参数:" + plainTex + ",signature=" + signature, content: "参数:" + plainTex + ",signature=" + signature,
optitle: "记录钉钉鉴权签名信息参数4", optitle: "记录钉钉鉴权签名信息参数5",
}); });
return signature; return signature;
......
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