Explorar el Código

maycur-优化err提示

hsun hace 1 año
padre
commit
6c6d073da5
Se han modificado 1 ficheros con 1 adiciones y 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 {