Browse Source

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

xuzhiheng 3 năm trước cách đây
mục cha
commit
ff49588bac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {
 	if r != nil && len(*r) > 0 {
 		data := (*r)[0]
 		data := (*r)[0]
 		license := common.ObjToString(data["license"]) //老企业认证只传了后缀,需要拼接
 		license := common.ObjToString(data["license"]) //老企业认证只传了后缀,需要拼接
-		if !strings.Contains(license, "http") {
+		if license != "" && !strings.Contains(license, "http") {
 			license = this.Url + license
 			license = this.Url + license
 		}
 		}
 		submitTime := common.ObjToString(data["craetetime"])
 		submitTime := common.ObjToString(data["craetetime"])