fix
This commit is contained in:
parent
fe01a42f82
commit
45682bbf99
|
@ -143,8 +143,8 @@ func (w *wsConnectItem) consumeRenderImageData() {
|
|||
|
||||
// 执行渲染任务
|
||||
func (w *wsConnectItem) renderImage(renderImageData websocket_data.RenderImageReqMsg) {
|
||||
if renderImageData.RenderData.Logo == "" {
|
||||
w.renderErrResponse(renderImageData.RenderId, renderImageData.RequestId, renderImageData.RenderData.TemplateTag, "", "缺少logo", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
||||
if !strings.Contains(renderImageData.RenderData.Logo, "fusen") {
|
||||
w.renderErrResponse(renderImageData.RenderId, renderImageData.RequestId, renderImageData.RenderData.TemplateTag, "", "非法的logo", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
||||
return
|
||||
}
|
||||
//没传分辨率
|
||||
|
|
|
@ -4,7 +4,7 @@ import "strings"
|
|||
|
||||
// 通过url解析资源id
|
||||
func GetS3ResourceIdFormUrl(s3Url string) string {
|
||||
if !strings.Contains(s3Url, "https://") {
|
||||
if !strings.Contains(s3Url, "fusen") {
|
||||
return ""
|
||||
}
|
||||
s := strings.Split(s3Url, "/")
|
||||
|
|
Loading…
Reference in New Issue
Block a user