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
a2bacff2
Commit
a2bacff2
authored
Aug 28, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c3caf3a4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
center-channel/app/base/api/impl/action/icbcTools.js
+3
-0
center-channel/app/base/service/impl/trademark/icbcSve.js
+17
-0
center-channel/app/config/settings.js
+7
-0
No files found.
center-channel/app/base/api/impl/action/icbcTools.js
View file @
a2bacff2
...
...
@@ -36,6 +36,9 @@ class IcbcToolsAPI extends WEBBase {
case
"getCompanyIcpByName"
:
//工商icp证照查询
opResult
=
await
this
.
icbcSve
.
getCompanyIcpByName
(
action_body
,
req
);
break
;
case
"searchCertification"
:
//企业证书查询
opResult
=
await
this
.
icbcSve
.
searchCertification
(
action_body
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-channel/app/base/service/impl/trademark/icbcSve.js
View file @
a2bacff2
...
...
@@ -6,6 +6,7 @@ class IcbcService extends AppServiceBase {
constructor
()
{
super
();
this
.
zcApiUrl
=
settings
.
reqZcApi
();
this
.
certificationUrl
=
settings
.
certificationUrl
();
}
//企业模糊查询
async
getCompanyListByVague
(
obj
,
req
)
{
...
...
@@ -28,6 +29,22 @@ class IcbcService extends AppServiceBase {
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
//企业证书查询
async
searchCertification
(
queryobj
,
req
)
{
if
(
!
queryobj
.
companyName
){
return
system
.
getResultFail
(
-
1
,
'companyName can not be empty'
);
}
let
url
=
this
.
certificationUrl
+
"gsb/SearchCertification"
;
let
data
=
{
"company_name"
:
queryobj
.
companyName
,
"pageSize"
:
20
,
"pageIndex"
:
1
,
"isExactlySame"
:
"True"
}
return
await
this
.
opReqResult
(
url
,
data
,
req
);
}
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 @
a2bacff2
...
...
@@ -176,6 +176,13 @@ var settings = {
return
"http://43.247.184.94:7200/"
;
}
},
certificationUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://43.247.184.92:15506/"
;
//
}
else
{
return
"http://43.247.184.92:15506/"
;
}
},
reqZcApi
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://zcapi.apps.com:4002/"
;
//localsettings.reqEsDevUrl;
...
...
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