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
273b2070
Commit
273b2070
authored
Mar 22, 2021
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
baidutm
parent
b2778ff8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
center-channel/app/base/api/impl/tm/tmcase.js
+25
-4
center-channel/app/config/businessConfig.js
+6
-1
No files found.
center-channel/app/base/api/impl/tm/tmcase.js
View file @
273b2070
...
...
@@ -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/config/businessConfig.js
View file @
273b2070
...
...
@@ -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