|
@@ -59,5 +59,6 @@ func (l *GetApiWxCardQrcodeLogic) GetApiWxCardQrcode(req *types.QrcodeReq, w htt
|
|
|
imageContent, _ := io.ReadAll(resp.Body)
|
|
|
w.Header().Set("Content-Type", "image/png")
|
|
|
w.Header().Set("Content-Length", strconv.Itoa(len(imageContent)))
|
|
|
- _, _ = w.Write(imageContent)
|
|
|
+ nbytes, err := w.Write(imageContent)
|
|
|
+ fmt.Printf("nbytes=%d err=%v\n", nbytes, err)
|
|
|
}
|