Commit faeed4c3 by wkliang

fix real

parent 04122c30
......@@ -73,52 +73,8 @@ class FblicenseService extends AppServiceBase {
}
async licenseCompare (pobj) {
let res1 = {
"Message": "查询成功",
"OrderNumber": null,
"Result": {
"Data": {
"中央厨房": "否",
"主体业态": "单位食堂",
"住所": "新疆维吾尔自治区伊犁州伊宁县伊东工业园管委会",
"发证日期": "2018年07月19日",
"发证机关": "伊宁县市场监督管理局",
"散装熟食销售": "否",
"日常监督管理人员": "杜爱洪加拉斯",
"日常监督管理机构": "伊宁县市场监督管理局",
"有效期至": "2023年07月18日",
"法定代表人(负责人)": "霍庆华",
"监督举报电话": "",
"签发人": "马江平",
"经营场所": "新疆维吾尔自治区伊犁州伊宁县伊东工业园管委会",
"经营者名称": "新疆庆华能源集团有限公司",
"经营项目": "热食类食品制售,",
"网络经营": "否",
"许可证状态": "有效",
"许可证编号": "JY36540210003935",
"集体用餐配送单位": "否"
},
"Id": "85eb513de02c7ff8199bda197992888c",
"Schema": null
},
"Status": "200"
}
let res2 = {
"data": {
"EndDate": "2023-07-18 00:00:00",
"Id": "85eb513de02c7ff8199bda197992888c",
"Name": "食品经营许可证",
"No": "JY36540210003935",
"StartDate": "2018-07-19 00:00:00",
"Type": "fb001"
},
"msg": "success",
"status": 0
}
let res = res2
let key = `${pobj.companyName}_${pobj.picName}`
let resCache = await this.redisClient.get(key)
console.log(resCache)
if (resCache) {
return {
status: 0,
......@@ -126,8 +82,9 @@ class FblicenseService extends AppServiceBase {
data: JSON.parse(resCache)
}
} else {
let result = await this.restClient.execPost(pobj, url)
if (res.status == 0) {
let result = await this.restClient.execPost(pobj, 'http://106.13.228.212/gsb/api/qualificationsDetail')
result = JSON.parse(result.stdout)
if (result.status == 0) {
let result = res.data
result = this.ObjTrim(result)
result = {
......@@ -152,7 +109,7 @@ class FblicenseService extends AppServiceBase {
} else {
return {
status: -1,
msg: res.Message
msg: result.message
}
}
}
......
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