Commit 8b5f818b by 兰国旗

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents 4e11108a aaa9e95c
...@@ -5,21 +5,33 @@ var settings = require("../../../../config/settings"); ...@@ -5,21 +5,33 @@ var settings = require("../../../../config/settings");
const regCfg = require("./regCfg"); const regCfg = require("./regCfg");
class Tool extends APIBase { class Tool extends APIBase {
constructor() { constructor() {
super(); super();
this.gatewaypushlogSve = system.getObject("service.common.gatewaypushlogSve"); this.gatewaypushlogSve = system.getObject("service.common.gatewaypushlogSve");
} }
async icname(params, req) { async icname(params, req) {
let url = settings.icNameUrl() + 'api/icName/CheckName';
if (!params.cityName) {
return system.getResult(-1, 'cityName 不能为空!');
}
if (!params.keyWord) {
return system.getResult(-1, 'keyWord 不能为空!');
}
if (!params.industryType) {
return system.getResult(-1, 'industryType 不能为空!');
}
if (!params.organizationType) {
return system.getResult(-1, 'organizationType 不能为空!');
}
let obj = { let obj = {
cityname: params.CityName, cityname: params.cityName, //注册城市地区
keyword: params.KeyWord, keyword: params.keyWord, //公司字号
btname: params.IndustryType, btname: params.industryType, //行业类型
orgname: params.OrganizationType, orgname: params.organizationType, //组织类型
searchtype: params.SearchType || '', appkey: "5b29981785bd4272966b15ad8e8b9dd3"
sitcity: params.SitCity || '',
}; };
let result = await this.execPostByTimeOut(req, obj, settings.checkIcNameUrl()); let result = await this.restPostUrl(obj, url);
console.log('result--工商核名---',result) console.log('result--工商核名---', result)
return result; return result;
} }
......
...@@ -4373,10 +4373,10 @@ ...@@ -4373,10 +4373,10 @@
{ {
"actionType":"checkName", "actionType":"checkName",
"actionBody":{ "actionBody":{
"cityname": "北京", "cityname": "北京",//Y 注册城市地区
"keyword": "小米", "keyword": "小米",// Y 公司字号
"btname": "科技", "btname": "科技",// Y 行业类型
"orgname": "有限公司" "orgname": "有限公司"// Y 组织类型
} }
} }
...@@ -4388,23 +4388,23 @@ ...@@ -4388,23 +4388,23 @@
"status": 0, "status": 0,
"msg": "操作成功", "msg": "操作成功",
"data": { "data": {
"brandList": [], "brandList": [], //与字号相同的驰名商标列表
"cityList": [], "cityList": [], //与字号一致的地区名称列表
"code": "200", "code": "200", //核名的评分
"identicalCityList": [], "identicalCityList": [],//与地区、字号、行业相同公司列表
"level": "低", "level": "低", //通过核名的通过率,值:“高”,“中”,低
"msg": "查询完成", "msg": "查询完成",
"point": 1000, "point": 1000, //核名的评分
"sensitiveList": [], "sensitiveList": [],//与字号相同的敏感词列表
"similarCityList": [ "similarCityList": [//与字号名称相似公司列表
{ {
"id": 0, "id": 0, // Int 保留,默认0
"levels": "高", "levels": "高", // String 核名的相似度,“高”或“中”或“低”:1-29,低;30-69 中;70 以上高
"name": "北京<em>小米</em>智能科技有限公司", "name": "北京<em>小米</em>智能科技有限公司", // String 商标名称
"per": 83, "per": 83, // Int 相似度评分,约值
"pinyin": "", "pinyin": "", // String 如是拼音相同,返回命中词的拼音;其他返回“”
"title": "", "title": "", // String 保留,默认“”
"type": "" "type": "" // String 保留,默认“”
}, },
{ {
"id": 0, "id": 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment