jimmyyem 5 місяців тому
батько
коміт
1d16c53427

+ 2 - 1
internal/logic/wxcard/get_api_wx_card_qrcode_logic.go

@@ -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)
 }