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
d154534f
Commit
d154534f
authored
Jul 15, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pp
parent
d4cbcc4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
fqboss/app/base/api/impl/customerInfoPusherApi.js
+7
-2
No files found.
fqboss/app/base/api/impl/customerInfoPusherApi.js
View file @
d154534f
...
...
@@ -34,15 +34,20 @@ class CustomerInfoPusherApi {
let
bizResults
=
await
this
.
trademarkS
.
queryTmInfo
(
orderNum
);
let
bizId
=
bizResults
[
0
];
console
.
log
(
"bizId: "
+
JSON
.
stringify
(
bizId
));
let
printLog
=
"orderNum: "
+
JSON
.
stringify
(
orderNum
)
+
"bizId: "
+
JSON
.
stringify
(
bizId
)
console
.
log
(
printLog
);
//如果没有bizId,直接下一个
if
(
!
bizId
)
{
console
.
log
(
"没有bizId"
);
let
pusherStatus
=
await
this
.
trademarkS
.
updateTmCustomerInfo
(
orderNum
);
console
.
log
(
"不是阿里商标,更新状态成功"
+
orderNum
);
continue
;
}
if
(
!
bizId
.
businessId
)
{
console
.
log
(
"没有businessId"
);
let
pusherStatus
=
await
this
.
trademarkS
.
updateTmCustomerInfo
(
orderNum
);
console
.
log
(
"不是阿里商标,更新状态成功"
+
orderNum
);
continue
;
}
...
...
@@ -67,7 +72,7 @@ class CustomerInfoPusherApi {
//根据阿里接口返回的状态修改数据库中addressIsPushed的状态
let
pusherStatus
=
await
this
.
trademarkS
.
updateTmCustomerInfo
(
orderNum
);
console
.
log
(
"更新状态成功
:"
,
pusherStatus
);
console
.
log
(
"更新状态成功
"
+
orderNum
);
}
return
{
code
:
200
,
message
:
"调用推送接口成功"
};
}
catch
(
e
)
{
...
...
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