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
cd47d22b
Commit
cd47d22b
authored
Apr 12, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
190a3954
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
center-channel/app/base/api/impl/opaction/opOrder.js
+7
-2
center-channel/app/base/service/impl/utilsSve/utilsOpOrderSve.js
+6
-8
No files found.
center-channel/app/base/api/impl/opaction/opOrder.js
View file @
cd47d22b
...
...
@@ -5,6 +5,7 @@ class ProductAPI extends WEBBase {
constructor
()
{
super
();
this
.
utilsOpOrderSve
=
system
.
getObject
(
"service.utilsSve.utilsOpOrderSve"
);
this
.
utilsPushSve
=
system
.
getObject
(
"service.utilsSve.utilsPushSve"
);
}
/**
* 接口跳转-POST请求
...
...
@@ -26,8 +27,12 @@ class ProductAPI extends WEBBase {
pobj
.
requestId
=
req
.
requestId
;
var
opResult
=
null
;
switch
(
action_type
)
{
case
"closeAliTrademarkApplication"
:
//关闭阿里自主申请
opResult
=
await
this
.
utilsOpOrderSve
.
updateContacts
(
pobj
,
pobj
.
actionBody
);
case
"closeAliTrademarkApplication"
:
//关闭阿里自主申请actionBody:{product_id:产品id,parentCode:商标申请实例id}
var
pushInterfaceResult
=
await
this
.
utilsOpOrderSve
.
getProductInterface
(
pobj
,
pobj
.
actionBody
.
product_id
);
if
(
pushInterfaceResult
.
status
!=
0
)
{
pobj
.
actionBody
.
product_info
.
interface_info
=
pushInterfaceResult
.
data
;
this
.
utilsPushSve
.
pushBusInfo
(
pobj
,
"closeAliTmApply"
,
1
);
}
break
;
case
"updateContacts"
:
//修改订单联系人
opResult
=
await
this
.
utilsOpOrderSve
.
updateContacts
(
pobj
,
pobj
.
actionBody
);
...
...
center-channel/app/base/service/impl/utilsSve/utilsOpOrderSve.js
View file @
cd47d22b
...
...
@@ -20,7 +20,7 @@ class UtilsOpOrderService extends AppServiceBase {
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
getProductInterfaceObj
,
getProductInterfaceUrl
);
return
productItemInterfaceResult
;
}
async
updateContacts
(
pobj
,
actionBody
)
{
async
updateContacts
(
pobj
,
actionBody
)
{
//修改联系人
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100310"
);
}
...
...
@@ -30,7 +30,7 @@ class UtilsOpOrderService extends AppServiceBase {
result
.
data
=
null
;
return
result
;
}
async
updateTmOrder
(
pobj
,
actionBody
)
{
async
updateTmOrder
(
pobj
,
actionBody
)
{
//修改商标信息
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100320"
);
}
...
...
@@ -40,7 +40,7 @@ class UtilsOpOrderService extends AppServiceBase {
result
.
data
=
null
;
return
result
;
}
async
opUpdatePushInfo
(
result
,
pobj
,
opType
)
{
async
opUpdatePushInfo
(
result
,
pobj
,
opType
)
{
//操作商标信息修改推送的操作-本类内部使用
if
(
result
.
status
==
0
&&
result
.
data
.
orderStatus
<
4
)
{
result
.
data
.
appInfo
=
{
uapp_id
:
pobj
.
appInfo
.
uapp_id
,
...
...
@@ -62,7 +62,6 @@ class UtilsOpOrderService extends AppServiceBase {
}
}
async
tmConfirm
(
pobj
,
actionBody
)
{
//商标方案确认
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100025"
);
...
...
@@ -75,8 +74,7 @@ class UtilsOpOrderService extends AppServiceBase {
}
return
result
;
}
//推送方案确认信息
async
pushTmConfirm
(
result
,
pobj
,
actionBody
)
{
async
pushTmConfirm
(
result
,
pobj
,
actionBody
)
{
//推送方案确认信息
var
orderdelivery
=
result
.
data
;
var
deliveryContent
=
orderdelivery
.
deliveryContent
;
if
(
deliveryContent
)
{
...
...
@@ -105,9 +103,9 @@ class UtilsOpOrderService extends AppServiceBase {
tmpPobj
.
actionBody
.
product_info
=
productItemResult
.
data
;
tmpPobj
.
actionBody
.
product_id
=
tmpPobj
.
actionBody
.
product_info
.
id
;
//获取推送接口并推送
var
pushI
N
terfaceResult
=
await
this
.
getProductInterface
(
pobj
.
appInfo
,
tmpPobj
.
actionBody
.
product_id
);
var
pushI
n
terfaceResult
=
await
this
.
getProductInterface
(
pobj
.
appInfo
,
tmpPobj
.
actionBody
.
product_id
);
if
(
pushINterfaceResult
.
status
==
0
)
{
tmpPobj
.
actionBody
.
product_info
.
interface_info
=
pushI
N
terfaceResult
.
data
;
tmpPobj
.
actionBody
.
product_info
.
interface_info
=
pushI
n
terfaceResult
.
data
;
this
.
utilsPushSve
.
pushBusInfo
(
tmpPobj
,
"pushOpSolution"
,
1
);
}
}
...
...
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