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
487eab0b
Commit
487eab0b
authored
Sep 14, 2021
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cfd199d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
center-channel/app/base/api/impl/auth/taskapi.js
+15
-2
No files found.
center-channel/app/base/api/impl/auth/taskapi.js
View file @
487eab0b
...
...
@@ -13,15 +13,28 @@ class AccessAuthAPI extends APIBase {
this
.
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
this
.
utilsOpOrderSve
=
system
.
getObject
(
"service.utilsSve.utilsOpOrderSve"
);
}
/**
* 查询阿里商标优选留咨信息,定时任务调用
* @param pobj
* @param qobj
* @param req
* @return {Promise<{msg: *, data, status: number}|{msg: *, data: *, status: *}>}
* @constructor
*/
async
QueryTradeIntentionUserList
(
pobj
,
qobj
,
req
)
{
pobj
.
appInfo
=
{
uapp_id
:
18
}
let
start_time
=
await
this
.
redisClient
.
get
(
"start_time_18"
)
let
endtime
=
Date
.
now
();
let
starttime
=
Date
.
now
()
-
30
*
60
*
1000
;
//30分钟(毫秒)
let
starttime
=
start_time
||
(
Date
.
now
()
-
30
*
60
*
1000
)
;
//30分钟(毫秒)
pobj
.
actionBody
=
{
Begin
:
starttime
,
End
:
endtime
};
return
await
this
.
utilsNeedSve
.
queryTradeIntentionUserList
(
pobj
);
let
res
=
await
this
.
utilsNeedSve
.
queryTradeIntentionUserList
(
pobj
);
if
(
res
.
status
===
0
)
await
this
.
redisClient
.
set
(
"start_time_18"
,
endtime
+
1
)
return
res
}
async
taskAliIcapi
()
{
var
rtn
=
await
this
.
gatewaypushlogSve
.
taskAliIcapi
();
...
...
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