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
add46076
Commit
add46076
authored
Oct 27, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
d854753d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
center-app/app/base/utils/businessManager/opPlatformUtils.js
+5
-4
No files found.
center-app/app/base/utils/businessManager/opPlatformUtils.js
View file @
add46076
...
...
@@ -341,7 +341,7 @@ class OpPlatformUtils {
*/
async
getReqUserPinByLgoin
(
pobj
)
{
var
inputkey
=
pobj
.
appInfo
.
uapp_key
+
"_"
+
pobj
.
actionBody
.
userName
;
var
cacheManager
=
system
.
getObject
(
"db.common.cacheManager"
);
let
cacheManager
=
system
.
getObject
(
"db.common.cacheManager"
);
// var result = await cacheManager["AppUserPinByLoginPwdCache"].getCache(inputkey);
// if (result && result.status == 0) {
// return system.getResultFail(system.reDoLoginFail, "请勿重复登录", { userpin: result.data.userpin || "" });
...
...
@@ -357,9 +357,9 @@ class OpPlatformUtils {
* @param {*} pobj pobj.actionBody:{mobile:XXX,vcode:XXX,reqType:"reg",password:XXX-reqType为reg时有此值}
*/
async
getReqUserPinByLgoinVcode
(
pobj
)
{
var
cacheManager
=
system
.
getObject
(
"db.common.cacheManager"
);
let
cacheManager
=
system
.
getObject
(
"db.common.cacheManager"
);
var
inputkey
=
pobj
.
appInfo
.
uapp_key
+
"_"
+
pobj
.
actionBody
.
mobile
;
var
cacheCode
=
await
this
.
cacheManager
[
"VCodeCache"
].
getCache
(
inputkey
);
var
cacheCode
=
await
cacheManager
[
"VCodeCache"
].
getCache
(
inputkey
);
if
(
!
cacheCode
||
pobj
.
vcode
!=
cacheCode
.
vcode
)
{
return
system
.
getResultFail
(
system
.
verifyVCodeFail
,
"验证码校验不成功,请重新获取验证码验证."
,
system
.
verifyVCodeFail
);
}
...
...
@@ -404,8 +404,9 @@ class OpPlatformUtils {
if
(
!
pobj
.
appInfo
)
{
return
system
.
getResult
(
null
,
"pobj.appInfo can not be empty !"
);
}
let
cacheManager
=
system
.
getObject
(
"db.common.cacheManager"
);
var
inputkey
=
pobj
.
appInfo
.
uapp_key
+
"_"
+
pobj
.
actionBody
.
mobile
;
var
cacheCode
=
await
this
.
cacheManager
[
"VCodeCache"
].
getCache
(
inputkey
);
var
cacheCode
=
await
cacheManager
[
"VCodeCache"
].
getCache
(
inputkey
);
if
(
!
cacheCode
||
pobj
.
vcode
!=
cacheCode
.
vcode
)
{
return
system
.
getResultFail
(
system
.
verifyVCodeFail
,
"验证码校验不成功,请重新获取验证码验证."
,
system
.
verifyVCodeFail
);
}
...
...
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