Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qmai-openapi-sign-util
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王敬磊
qmai-openapi-sign-util
Commits
a0b30aaf
Commit
a0b30aaf
authored
Apr 07, 2023
by
王敬磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加token参数校验方法及示例
parent
9f6fe8c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
QmaiTokenUtil.java
src/main/java/com/qmai/openapi/sign/util/QmaiTokenUtil.java
+1
-1
No files found.
src/main/java/com/qmai/openapi/sign/util/QmaiTokenUtil.java
View file @
a0b30aaf
...
...
@@ -46,7 +46,7 @@ public class QmaiTokenUtil {
* @return 正常情况返回token字符串,token获取失败时返回null
*/
public
static
String
getToken
(
String
grandCode
,
String
openId
,
String
openKey
,
Long
nonce
,
Long
timestamp
)
{
if
(
checkParam
(
grandCode
,
openId
,
openKey
,
nonce
,
timestamp
))
{
if
(
!
checkParam
(
grandCode
,
openId
,
openKey
,
nonce
,
timestamp
))
{
return
null
;
}
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>(
4
);
...
...
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