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
d0892f31
Commit
d0892f31
authored
Mar 22, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
d9de2c7a
273b2070
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
8 deletions
+34
-8
center-channel/app/base/api/impl/tm/tmcase.js
+25
-4
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
+3
-3
center-channel/app/config/businessConfig.js
+6
-1
No files found.
center-channel/app/base/api/impl/tm/tmcase.js
View file @
d0892f31
...
...
@@ -10,26 +10,46 @@ class Tmcase extends APIBase {
constructor
()
{
super
();
this
.
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
this
.
baseUrl
=
settings
.
centerOrderUrl
()
+
"
/notifyaction/internalCallsNotify
/"
this
.
baseUrl
=
settings
.
centerOrderUrl
()
+
"
notifyaction/opNeedSolution
/"
}
async
updateTmStatus
(
pobj
,
qobj
,
req
)
{
var
reqUrl
=
this
.
baseUrl
+
"updateTmStatus"
;
var
result
=
await
this
.
utilsNeedSve
.
restPostUrl
(
pobj
);
var
result
=
await
this
.
utilsNeedSve
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
//接收辅助、担保商标注册信息
async
nbtzreceiveAssistTmData
(
pobj
,
qobj
,
req
)
{
var
reqUrl
=
this
.
baseUrl
+
"nbtzreceiveAssistTmData"
;
var
result
=
await
this
.
utilsNeedSve
.
restPostUrl
(
pobj
);
var
result
=
await
this
.
utilsNeedSve
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
&&
result
.
status
==
0
){
await
this
.
pushData2Platform
()
}
return
result
;
}
//接收辅助、担保商标注册修改信息
async
nbtzreceiveEditAssistTmData
(
pobj
,
qobj
,
req
)
{
var
reqUrl
=
this
.
baseUrl
+
"nbtzreceiveEditAssistTmData"
;
var
result
=
await
this
.
utilsNeedSve
.
restPostUrl
(
pobj
);
var
result
=
await
this
.
utilsNeedSve
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
/**
* 推送数据至平台方(百度、阿里)
* needSolution 需求方案
* appInfo app
* opflag 操作标志:QueryTradeIntentionUserList:查询需求列表,SaveTradeMarkProductSolution:提交注册⽅案-商标信息
* SaveTradeMarkMaterialDetail:补全注册⽅案-申请⼈信息 ConfirmTradeIntention:确认注册⽅案
*
*/
async
pushData2Platform
(
needSolution
,
appInfo
,
opflag
){
if
(
appInfo
.
uapp_id
==
18
){
//阿里云商机
}
if
(
appInfo
.
uapp_id
==
44
){
//百度云商机
}
}
}
module
.
exports
=
Tmcase
;
\ No newline at end of file
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
View file @
d0892f31
...
...
@@ -803,9 +803,9 @@ class BaseCenterOrderService extends AppServiceBase {
OfficialFileURL
:
res
.
data
.
OfficialFileURL
,
ApplicationStatus
:
res
.
data
.
ApplicationStatus
,
//2021-3-18 addNew
CertificateNumber
:
ab
.
CertificateNumber
||
""
,
//证书编号
CertificateStartTime
:
ab
.
CertificateStartTime
||
""
,
//证书有效期 开始时间
CertificateEndTime
:
ab
.
CertificateEndTime
||
""
//证书有效期 结束时间
CertificateNumber
:
res
.
data
.
CertificateNumber
||
""
,
//证书编号
CertificateStartTime
:
res
.
data
.
CertificateStartTime
||
""
,
//证书有效期 开始时间
CertificateEndTime
:
res
.
data
.
CertificateEndTime
||
""
//证书有效期 结束时间
};
//推送状态变更
var
ali
=
await
this
.
aliclient
.
reqbyget
({
action
:
"AcceptPartnerNotification"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
...
...
center-channel/app/config/businessConfig.js
View file @
d0892f31
...
...
@@ -48,7 +48,12 @@ module.exports = {
"/api/ic/feedback/submit"
,
"/api/ic/order/notify"
,
"/api/ic/order/close"
,
"/api/ic/tool/icname"
"/api/ic/tool/icname"
,
"/api/tm/consultation/submit"
,
"/api/tm/feedback/submit"
,
"/api/tm/status/notify"
,
"/api/tm/tmcase/nbtzreceiveAssistTmData"
,
"/api/tm/tmcase/nbtzreceiveEditAssistTmData"
]
}
}
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