Przeglądaj źródła

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

xuzhiheng 3 lat temu
rodzic
commit
ff49588bac
1 zmienionych plików z 1 dodań i 1 usunięć
  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"])