Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
f8ff82d9
Commit
f8ff82d9
authored
May 20, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
3e69ee86
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
RB_Mall_Magic_Extend.cs
Mall.Model/Extend/User/RB_Mall_Magic_Extend.cs
+35
-0
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+4
-0
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+4
-0
No files found.
Mall.Model/Extend/User/RB_Mall_Magic_Extend.cs
View file @
f8ff82d9
...
...
@@ -13,6 +13,41 @@ namespace Mall.Model.Entity.User
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Mall_Magic_Extend
:
Model
.
Entity
.
User
.
RB_Mall_Magic
{
/// <summary>
/// 魔方数据列表
/// </summary>
public
List
<
MagicItem
>
MagicDataList
{
get
;
set
;
}
/// <summary>
/// 创建时间字符串
/// </summary>
public
string
CreateDateStr
{
get
{
string
str
=
""
;
if
(
this
.
CreateDate
!=
null
)
{
str
=
Convert
.
ToDateTime
(
this
.
CreateDate
).
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
}
return
str
;
}
}
}
/// <summary>
/// 魔方数据项
/// </summary>
public
class
MagicItem
{
/// <summary>
/// 魔方链接
/// </summary>
public
string
Link
{
get
;
set
;
}
/// <summary>
/// 魔方图片
/// </summary>
public
string
ImgUrl
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Module.User/MiniProgramModule.cs
View file @
f8ff82d9
...
...
@@ -204,6 +204,10 @@ namespace Mall.Module.User
{
extModel
=
new
RB_Mall_Magic_Extend
();
}
if
(
extModel
.
MagicData
!=
null
&&
!
string
.
IsNullOrEmpty
(
extModel
.
MagicData
))
{
extModel
.
MagicDataList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
MagicItem
>>(
extModel
.
MagicData
);
}
return
extModel
;
}
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
f8ff82d9
...
...
@@ -1043,6 +1043,10 @@ namespace Mall.WebApi.Controllers.User
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
extModel
.
CreateDate
=
DateTime
.
Now
;
if
(
extModel
.
MagicDataList
!=
null
&&
extModel
.
MagicDataList
.
Count
>
0
)
{
extModel
.
MagicData
=
Common
.
Plugin
.
JsonHelper
.
Serialize
(
extModel
.
MagicDataList
);
}
var
flag
=
programModule
.
SetMallMagicModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment