code refactor

This commit is contained in:
MaysWind
2024-07-28 16:04:34 +08:00
parent 2e04affb00
commit c92a9e61b0
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func (a *QrCodesApi) MobileUrlQrCodeHandler(c *core.Context) ([]byte, string, *e
return nil, "", errs.ErrOperationFailed
}
return data, "", nil
return data, "image/png", nil
}
func (a *QrCodesApi) generateUrlQrCode(c *core.Context, url string) ([]byte, *errs.Error) {