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
c11748ba
Commit
c11748ba
authored
Dec 17, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核名接口
parent
339b3a55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
center-channel/app/base/api/impl/action/tmQuery.js
+3
-0
center-channel/app/base/service/impl/trademark/tmquerySve.js
+29
-0
center-channel/app/config/settings.js
+7
-0
No files found.
center-channel/app/base/api/impl/action/tmQuery.js
View file @
c11748ba
...
...
@@ -141,6 +141,9 @@ class TmQueryAPI extends WEBBase {
case
"findTrademarkNamejuhe"
:
//根据商标名称模糊查询,商标注册地域/大类分布
opResult
=
await
this
.
tmquerySve
.
findTrademarkNamejuhe
(
action_body
,
req
);
break
;
case
"checkName"
:
//根据商标名称模糊查询,商标注册地域/大类分布
opResult
=
await
this
.
tmquerySve
.
checkName
(
action_body
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-channel/app/base/service/impl/trademark/tmquerySve.js
View file @
c11748ba
...
...
@@ -162,6 +162,35 @@ class TmqueryService {
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
//核名接口
async
checkName
(
queryobj
,
req
){
if
(
!
queryobj
.
cityname
){
return
system
.
getResult
(
-
1
,
'cityname 不能为空!'
);
}
if
(
!
queryobj
.
keyword
){
return
system
.
getResult
(
-
1
,
'keyword 不能为空!'
);
}
if
(
!
queryobj
.
btname
){
return
system
.
getResult
(
-
1
,
'btname 不能为空!'
);
}
if
(
!
queryobj
.
orgname
){
return
system
.
getResult
(
-
1
,
'orgname 不能为空!'
);
}
let
data
=
{
cityname
:
queryobj
.
cityname
,
keyword
:
queryobj
.
keyword
,
btname
:
queryobj
.
btname
,
orgname
:
queryobj
.
orgname
,
appkey
:
"5b29981785bd4272966b15ad8e8b9dd3"
}
let
url
=
settings
.
icNameUrl
()
+
'api/icName/CheckName'
let
result
=
await
this
.
opReqResult
(
url
,
data
,
req
);
if
(
result
.
Status
!=
200
){
return
system
.
getResult
(
-
1
,
result
.
message
);
}
return
system
.
getResult
(
result
.
data
);
}
async
opReqResult
(
reqUrl
,
queryobj
,
req
)
{
var
rtn
=
await
this
.
execClient
.
execPushDataPost
(
queryobj
,
reqUrl
,
req
.
headers
[
"token"
],
req
.
headers
[
"request-id"
]);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
...
...
center-channel/app/config/settings.js
View file @
c11748ba
...
...
@@ -281,6 +281,13 @@ var settings = {
return
18
// uapp_id
}
},
icNameUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"https://icname.gongsibao.com/"
}
else
{
return
"https://icname.gongsibao.com/"
}
},
apiconfig
:
{
opLogUrl
:
function
()
{
return
settings
.
reqEsAddr
()
+
"center_channel_log/_doc?pretty"
;
...
...
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