fix
This commit is contained in:
parent
24dd57d57d
commit
9b1db4740d
|
@ -162,8 +162,8 @@ func (l *GetProductDetailLogic) GetProductDetail(req *types.GetProductDetailReq,
|
||||||
//获取默认渲染的尺寸
|
//获取默认渲染的尺寸
|
||||||
defaultSize, err := l.getRenderDefaultSize(req.ProductId, req.TemplateTag)
|
defaultSize, err := l.getRenderDefaultSize(req.ProductId, req.TemplateTag)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error("获取默认尺寸失败:", err.Error())
|
||||||
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get default size")
|
//return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get default size")
|
||||||
}
|
}
|
||||||
//整理返回
|
//整理返回
|
||||||
rspSizeList := make([]types.SizeInfo, 0, len(sizeList))
|
rspSizeList := make([]types.SizeInfo, 0, len(sizeList))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user