fix:上传logo--debug模式
This commit is contained in:
parent
a0267481df
commit
f5779ba6c1
|
@ -156,8 +156,8 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
|
||||||
if logoResourceId == "" {
|
if logoResourceId == "" {
|
||||||
return nil, errors.New("invalid logo url")
|
return nil, errors.New("invalid logo url")
|
||||||
}
|
}
|
||||||
userMaterialModel := gmodel.NewFsUserMaterialModel(l.MysqlConn.Debug())
|
userMaterialModel := gmodel.NewFsResourceModel(l.MysqlConn)
|
||||||
resLogoInfo, err := userMaterialModel.FindOneByLogoResourceId(ctx, logoResourceId)
|
resLogoInfo, err := userMaterialModel.FindOneById(ctx, logoResourceId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return nil, fmt.Errorf("logo find fial logoResourceId: %v, err: %v", logoResourceId, err)
|
return nil, fmt.Errorf("logo find fial logoResourceId: %v, err: %v", logoResourceId, err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user