Commit dad1e514 by 宋毅

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

parents 69d7caa3 3b2cf2a3
......@@ -2,6 +2,7 @@ var WEBBase = require("../../web.base");
var system = require("../../../system");
var settings = require("../../../../config/settings");
const axios = require("axios");
const { getResult } = require("../../../system");
class Zzzd extends WEBBase {
constructor() {
......@@ -142,6 +143,28 @@ class Zzzd extends WEBBase {
}
break;
case "uploadBusiness":
if(!pobj.actionBody.picUrl) {
return system.getResult(null,`图片地址不能为空`);
}
if(!pobj.actionBody.identityCardNo) {
return system.getResult(null,`身份证号不能为空`);
}
var reqParam = {
bl_url:pobj.actionBody.picUrl
}
// 分析营业执照
var result = await this.restPostUrl(reqParam, settings.businessDistinguishUrl()+"gsb/businessLicenseUrlApi");
if(result.status != 1) {
return getResult(null, result.msg)
}
if(result.data.reg_location == "无") {
return system.getResult(null,"审核不通过,原因:营业执照分析失败");
}
// 判断 如果四要素有空 则 不请求 并返回营业执照解析失败
// 请求四要素验证
// var businessDistinguishResult = await this.restPostUrl(reqParam, settings.businessDistinguishUrl()+"gsb/businessLicenseUrlApi");
// 返回四要素请求结果
return system.getResultSuccess();
default:
opResult = system.getResult(null, "action_type参数错误");
......
......@@ -94,6 +94,10 @@ var settings = {
return "http://qualitydoctor-service/";
}
},
// 2020 0807 lin 新增 营业执照识别请求地址
businessDistinguishUrl: function () {
return "http://43.247.184.92:15504/"
},
centerChannelUrl: function () {
if (this.env == "dev") {
return "http://60.205.209.94:4012/"
......
......@@ -53,4 +53,7 @@
  1 [公司起名相关接口](doc/api/platform/companyNaming.md)
## 17. 商标驳回复审相关接口
  1 [商标驳回复审相关接口](doc/api/platform/trademarkReview.md)
\ No newline at end of file
  1 [商标驳回复审相关接口](doc/api/platform/trademarkReview.md)
## 17. 资质诊断相关接口
  1 [商标驳回复审相关接口](doc/api/platform/zzzd.md)
<a name="menu" href="/doc">返回主目录</a>
1. [诊断](#zd)
## **<a name="zd"> 诊断</a>**
[返回到目录](#menu)
##### URL
[/web/opreceive/need/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:uploadBusiness
``` javascript
{
picUrl: "https://gsb-zc.oss-cn-beijing.aliyuncs.com/zc_word2picb2bc98b9fc564ef2a1f4b3cbe9352f39.jpg", //营业执照地址
identityCardNo: "1102241996xxxxxxxxxxx", //身份证号
}
```
#### 返回结果
``` javascript
不通过
{
"status": -1,
"msg": "审核不通过,原因:营业执照分析失败",
"data": null,
"bizmsg": "empty",
"requestId": "7ac5b432225d43c58e78dcc630518fdd"
}
通过
{
"status": 0,
"msg": "success",
"data": null,
"requestId": "837ea5c284074d568fa198f7f259088a"
}
```
\ No newline at end of file
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