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
18f5d2bc
Commit
18f5d2bc
authored
Jul 15, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fqboss' of gitlab.gongsibao.com:jiangyong/zhichan into fqboss
parents
26aee587
bf255d10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
fqboss/app/base/api/impl/customerInfoPusherApi.js
+8
-3
No files found.
fqboss/app/base/api/impl/customerInfoPusherApi.js
View file @
18f5d2bc
...
@@ -34,15 +34,20 @@ class CustomerInfoPusherApi {
...
@@ -34,15 +34,20 @@ class CustomerInfoPusherApi {
let
bizResults
=
await
this
.
trademarkS
.
queryTmInfo
(
orderNum
);
let
bizResults
=
await
this
.
trademarkS
.
queryTmInfo
(
orderNum
);
let
bizId
=
bizResults
[
0
];
let
bizId
=
bizResults
[
0
];
console
.
log
(
"bizId: "
+
JSON
.
stringify
(
bizId
));
let
printLog
=
"orderNum: "
+
JSON
.
stringify
(
orderNum
)
+
"bizId: "
+
JSON
.
stringify
(
bizId
)
console
.
log
(
printLog
);
//如果没有bizId,直接下一个
//如果没有bizId,直接下一个
if
(
!
bizId
)
{
if
(
!
bizId
)
{
console
.
log
(
"没有bizId"
);
console
.
log
(
"没有bizId"
);
let
pusherStatus
=
await
this
.
trademarkS
.
updateTmCustomerInfo
(
orderNum
);
console
.
log
(
"不是阿里商标,更新状态成功"
+
orderNum
);
continue
;
continue
;
}
}
if
(
!
bizId
.
businessId
)
{
if
(
!
bizId
.
businessId
)
{
console
.
log
(
"没有businessId"
);
console
.
log
(
"没有businessId"
);
let
pusherStatus
=
await
this
.
trademarkS
.
updateTmCustomerInfo
(
orderNum
);
console
.
log
(
"不是阿里商标,更新状态成功"
+
orderNum
);
continue
;
continue
;
}
}
...
@@ -59,7 +64,7 @@ class CustomerInfoPusherApi {
...
@@ -59,7 +64,7 @@ class CustomerInfoPusherApi {
//将成功结果写入到日志
//将成功结果写入到日志
await
this
.
oplogSve
.
create
({
await
this
.
oplogSve
.
create
({
logLevel
:
"info"
,
logLevel
:
"info"
,
optitle
:
"推送联系人信息到阿里
---异常
"
,
optitle
:
"推送联系人信息到阿里"
,
op
:
"app/base/api/impl/customerInfoPusherApi/collectInfo"
,
op
:
"app/base/api/impl/customerInfoPusherApi/collectInfo"
,
content
:
"参数:"
+
JSON
.
stringify
(
obj
)
+
"返回结果:"
+
JSON
.
stringify
(
pushRes
),
content
:
"参数:"
+
JSON
.
stringify
(
obj
)
+
"返回结果:"
+
JSON
.
stringify
(
pushRes
),
clientIp
:
""
clientIp
:
""
...
@@ -67,7 +72,7 @@ class CustomerInfoPusherApi {
...
@@ -67,7 +72,7 @@ class CustomerInfoPusherApi {
//根据阿里接口返回的状态修改数据库中addressIsPushed的状态
//根据阿里接口返回的状态修改数据库中addressIsPushed的状态
let
pusherStatus
=
await
this
.
trademarkS
.
updateTmCustomerInfo
(
orderNum
);
let
pusherStatus
=
await
this
.
trademarkS
.
updateTmCustomerInfo
(
orderNum
);
console
.
log
(
"更新状态成功
:"
,
pusherStatus
);
console
.
log
(
"更新状态成功
"
+
orderNum
);
}
}
return
{
code
:
200
,
message
:
"调用推送接口成功"
};
return
{
code
:
200
,
message
:
"调用推送接口成功"
};
}
catch
(
e
)
{
}
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