浏览代码

feat:营业执照地址增加判空

xuzhiheng 3 年之前
父节点
当前提交
ff49588bac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      entity/ent.go

+ 1 - 1
entity/ent.go

@@ -553,7 +553,7 @@ func (this *CheckEnt) Info() *EntInfoData {
 	if r != nil && len(*r) > 0 {
 		data := (*r)[0]
 		license := common.ObjToString(data["license"]) //老企业认证只传了后缀,需要拼接
-		if !strings.Contains(license, "http") {
+		if license != "" && !strings.Contains(license, "http") {
 			license = this.Url + license
 		}
 		submitTime := common.ObjToString(data["craetetime"])