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
c254621c
Commit
c254621c
authored
Mar 30, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
7138b646
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
26 deletions
+1
-26
center-app/app/base/service/impl/utilsSve/utilsuserSve.js
+1
-26
No files found.
center-app/app/base/service/impl/utilsSve/utilsuserSve.js
View file @
c254621c
...
@@ -138,28 +138,6 @@ class UtilsUserSve extends AppServiceBase {
...
@@ -138,28 +138,6 @@ class UtilsUserSve extends AppServiceBase {
let
plainTex
=
"jsapi_ticket="
+
ticket
+
"&noncestr="
+
nonce
+
"×tamp="
+
timeStamp
+
"&url="
+
url
;
let
plainTex
=
"jsapi_ticket="
+
ticket
+
"&noncestr="
+
nonce
+
"×tamp="
+
timeStamp
+
"&url="
+
url
;
//1
// var BufferList = new Buffer(plainTex, "UTF-8");
// let signBufferList = cryptoJS.SHA1(BufferList).digest();
// let hexs = "";
// for (let i = 0; i < signBufferList.length; i++) {
// let hex = (signBufferList[i]).toString(16);
// if (hex.length === 1) {
// hexs = '0' + hex;
// }
// hexs += hex.toUpperCase();
// }
// const signature = hexs;
// 2
// let signature = cryptoJS.SHA1(plainTex).toString();
// 3
// let signature = cryptoJS.createHash('sha1').update(plainTex).digest('hex').toUpperCase();
//4
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'
);
...
@@ -169,12 +147,9 @@ class UtilsUserSve extends AppServiceBase {
...
@@ -169,12 +147,9 @@ class UtilsUserSve extends AppServiceBase {
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
:
"记录钉钉鉴权签名信息参数"
,
optitle
:
"记录钉钉鉴权签名信息参数
4
"
,
});
});
return
signature
;
return
signature
;
}
}
}
}
...
...
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