|
@@ -197,9 +197,9 @@ func AddToMaterial(req material.SaveAsMaterialReq, opUserId int, opUserName stri
|
|
|
}
|
|
|
//素材主表信息
|
|
|
materialInfo := &material.Material{
|
|
|
- MaterialName: utils.TrimStr(req.MaterialName),
|
|
|
- MaterialNameEn: utils.TrimStr(req.MaterialName),
|
|
|
- ImgUrl: utils.TrimStr(resourceUrl),
|
|
|
+ MaterialName: req.MaterialName,
|
|
|
+ MaterialNameEn: req.MaterialName,
|
|
|
+ ImgUrl: resourceUrl,
|
|
|
SysUserId: opUserId,
|
|
|
SysUserRealName: opUserName,
|
|
|
ModifyTime: time.Now(),
|
|
@@ -269,9 +269,9 @@ func MyChartAddToMaterial(req material.MyChartSaveAsMaterialReq, opUserId int, o
|
|
|
|
|
|
//素材主表信息
|
|
|
materialInfo := &material.Material{
|
|
|
- MaterialName: utils.TrimStr(v.MaterialName),
|
|
|
- MaterialNameEn: utils.TrimStr(v.MaterialName),
|
|
|
- ImgUrl: utils.TrimStr(resourceUrl),
|
|
|
+ MaterialName: v.MaterialName,
|
|
|
+ MaterialNameEn: v.MaterialName,
|
|
|
+ ImgUrl: resourceUrl,
|
|
|
SysUserId: opUserId,
|
|
|
SysUserRealName: opUserName,
|
|
|
ModifyTime: time.Now(),
|