Explorar o código

maycur-优化err提示

hsun hai 1 ano
pai
achega
6c6d073da5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/maycur/maycur.go

+ 1 - 1
services/maycur/maycur.go

@@ -50,7 +50,7 @@ func DailyUpdateCompanyProfile(cont context.Context) (err error) {
 	}
 	result := new(models.BaseResponse)
 	if e = json.Unmarshal(b, &result); e != nil {
-		err = fmt.Errorf("result unmarshal err: %s", e.Error())
+		err = fmt.Errorf("result unmarshal err: %s\nresult: %s", e.Error(), string(b))
 		return
 	}
 	if result.Ret != 200 {