fix
This commit is contained in:
parent
427c7cc817
commit
f3e9916b37
|
@ -3,7 +3,6 @@ package logic
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"fusenapi/model"
|
"fusenapi/model"
|
||||||
"fusenapi/server/data-transfer/internal/svc"
|
"fusenapi/server/data-transfer/internal/svc"
|
||||||
"fusenapi/server/data-transfer/internal/types"
|
"fusenapi/server/data-transfer/internal/types"
|
||||||
|
@ -56,9 +55,8 @@ func (l *UploadQrcodeLogic) UploadQrcode(req *types.UploadQrcodeReq) (resp *type
|
||||||
imgBase64, err := qrcode.CreateQrCodeBs64WithLogo(req.Url, "", "", 512, int(qrCodeSet.IndexX), int(qrCodeSet.IndexY), true)
|
imgBase64, err := qrcode.CreateQrCodeBs64WithLogo(req.Url, "", "", 512, int(qrCodeSet.IndexX), int(qrCodeSet.IndexY), true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return resp.SetStatusWithMessage(basic.CodeServiceErr, err.Error())
|
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to generate qrcode")
|
||||||
}
|
}
|
||||||
fmt.Println(imgBase64)
|
|
||||||
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.UploadQrcodeRsp{
|
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.UploadQrcodeRsp{
|
||||||
Link: "",
|
Link: "",
|
||||||
D: qrType + " " + imgBase64,
|
D: qrType + " " + imgBase64,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user