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
99e97d6b
Commit
99e97d6b
authored
Jul 31, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/center-app' into center-app
parents
55730bf6
c24059dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
center-app/app/base/db/metadata/apps/platform.js
+1
-1
center-app/app/base/service/impl/utilsSve/utilsappSve.js
+1
-1
center-app/app/base/utils/businessManager/opPlatformUtils.js
+7
-0
center-app/app/base/utils/redisClient.js
+4
-0
No files found.
center-app/app/base/db/metadata/apps/platform.js
View file @
99e97d6b
...
...
@@ -34,7 +34,7 @@ module.exports = {
"pushOrderBusiness"
:
"推送订单商机"
,
"pushOrderRefund"
:
"推送订单退款"
,
"pushNeedBusiness"
:
"推送需求商机"
,
"pushNeedNote"
:
"推送需求小计"
,
"pushCloseNeed"
:
"推送关闭需求"
,
"pushNeedSolution"
:
"推送需求方案"
,
"pushCloseNeedSolution"
:
"推送关闭需求方案"
,
"pushOpSolution"
:
"推送操作方案"
,
"createAliTmApply"
:
"推送创建阿里商标申请"
,
"closeAliTmApply"
:
"推送主动关闭阿里商标申请"
,
"updateAliTmApplicant"
:
"推送更新阿里商标申请人信息"
,
"pushRePurchaseBusiness"
:
"复购商机推送"
"pushRePurchaseBusiness"
:
"复购商机推送"
,
"pushDeliveryOrder"
:
"推送交付系统订单"
,
"pushDeliveryStatusNotify"
:
"推送交付系统交付状态更新"
},
//---------
...
...
center-app/app/base/service/impl/utilsSve/utilsappSve.js
View file @
99e97d6b
...
...
@@ -52,7 +52,7 @@ class UtilsAppSve extends AppServiceBase {
async
getAppInfo
(
pobj
)
{
var
uapp_id
=
pobj
.
uappId
||
""
;
var
app
=
await
this
.
appDao
.
findOne
({
uapp_id
:
uapp_id
});
var
app
=
await
this
.
appDao
.
findOne
({
app_code
:
uapp_id
});
if
(
app
)
{
return
system
.
getResultSuccess
(
app
);
}
...
...
center-app/app/base/utils/businessManager/opPlatformUtils.js
View file @
99e97d6b
...
...
@@ -305,6 +305,11 @@ class OpPlatformUtils {
var
result
=
await
cacheManager
[
"AppUserPinByUserNameCache"
].
getCache
(
inputkey
);
if
(
result
&&
result
.
status
==
0
)
{
if
(
result
.
data
.
userpin
)
{
// 2020 0723 lin修改 登录并重新设置过期时间
var
inputkey
=
this
.
getUserPinKey
(
inputkey
);
var
userpinKey
=
this
.
getUserPinKey
(
result
.
data
.
userpin
);
await
this
.
redisClient
.
setExpire
(
inputkey
,
system
.
exTime
);
await
this
.
redisClient
.
setExpire
(
userpinKey
,
system
.
exTime
);
return
system
.
getResultFail
(
system
.
reDoLoginFail
,
"请勿重复处理"
,
{
userpin
:
result
.
data
.
userpin
||
""
});
}
else
{
await
this
.
clearLoginCache
(
inputkey
);
...
...
@@ -387,6 +392,8 @@ class OpPlatformUtils {
if
(
!
userInfoResult
)
{
return
system
.
getResultFail
(
system
.
noLogin
,
"user no login"
);
}
// 2020 0723 lin修改 获取账户信息并重新设置过期时间
// await this.redisClient.setExpire(userpinKey, system.exTime);
return
JSON
.
parse
(
userInfoResult
);
}
/**
...
...
center-app/app/base/utils/redisClient.js
View file @
99e97d6b
...
...
@@ -248,6 +248,10 @@ class RedisClient {
console
.
log
(
"publish--"
+
channel
+
":"
+
consumetarget
);
return
this
.
client
.
publishAsync
(
channel
,
consumetarget
);
}
// 2020 0723 lin 新增 设置过期时间方法
async
setExpire
(
key
,
t
)
{
this
.
client
.
expire
(
key
,
t
);
}
}
module
.
exports
=
RedisClient
;
// var client=new RedisClient();
...
...
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