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
1fc75ff4
Commit
1fc75ff4
authored
Apr 30, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a90a895a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
255 additions
and
0 deletions
+255
-0
RB_MiniProgram.cs
Mall.Model/Entity/User/RB_MiniProgram.cs
+140
-0
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+73
-0
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+42
-0
No files found.
Mall.Model/Entity/User/RB_MiniProgram.cs
View file @
1fc75ff4
...
...
@@ -116,5 +116,145 @@ namespace Mall.Model.Entity.User
/// 导航底部是否开启阴影效果(0-未开启,1-开启)
/// </summary>
public
int
BottomNavIsShadow
{
get
;
set
;
}
/// <summary>
/// 是否开启版权设置(0-开启,1-关闭)
/// </summary>
public
int
IsOpenCopyRight
{
get
;
set
;
}
/// <summary>
/// 小程序AppId
/// </summary>
public
string
MiniAppId
{
get
;
set
;
}
/// <summary>
/// 小程序AppSecret
/// </summary>
public
string
MiniAppSecret
{
get
;
set
;
}
/// <summary>
/// 微信支付商户号
/// </summary>
public
string
WeChatPayMerchants
{
get
;
set
;
}
/// <summary>
/// 微信支付Api密钥
/// </summary>
public
string
WeChatApiSecret
{
get
;
set
;
}
/// <summary>
/// 微信支付证书
/// </summary>
public
string
WeChatPayCertificate
{
get
;
set
;
}
/// <summary>
/// 微信支付私钥
/// </summary>
public
string
WeChatPayPrivateKey
{
get
;
set
;
}
/// <summary>
/// 下单成功提醒(类目:服装/鞋/箱包)
/// </summary>
public
string
OrderSuccessTpl
{
get
;
set
;
}
/// <summary>
/// 订单取消提醒(类目:服装/鞋/箱包)
/// </summary>
public
string
OrderCancelTpl
{
get
;
set
;
}
/// <summary>
/// 订单发货提醒(类目:服装/鞋/箱包)
/// </summary>
public
string
OrderDeliverGoodsTpl
{
get
;
set
;
}
/// <summary>
/// 退款提醒(类目:服装/鞋/箱包)
/// </summary>
public
string
RefundTpl
{
get
;
set
;
}
/// <summary>
/// 活动状态提醒(类目:服装/鞋/箱包)
/// </summary>
public
string
ActiveStateTpl
{
get
;
set
;
}
/// <summary>
/// 审核结果提醒(类目:服装/鞋/箱包)
/// </summary>
public
string
AuditResultTpl
{
get
;
set
;
}
/// <summary>
/// 提现成功通知(类目: 服装/鞋/箱包 )
/// </summary>
public
string
ReflectSuccessTpl
{
get
;
set
;
}
/// <summary>
/// 提现失败通知(类目: 服装/鞋/箱包 )
/// </summary>
public
string
ReflectFailTpl
{
get
;
set
;
}
/// <summary>
/// 会员等级变更通知(类目: 服装/鞋/箱包 )
/// </summary>
public
string
MembersLevelChangeTpl
{
get
;
set
;
}
}
}
Mall.Module.User/MiniProgramModule.cs
View file @
1fc75ff4
...
...
@@ -177,6 +177,10 @@ namespace Mall.Module.User
{
nameof
(
RB_MiniProgram_Extend
.
CopyRightImg
),
extModel
.
CopyRightImg
},
{
nameof
(
RB_MiniProgram_Extend
.
CopyRightLink
),
extModel
.
CopyRightLink
},
};
if
(
extModel
.
IsOpenCopyRight
>=
0
)
{
fileds
.
Add
(
nameof
(
RB_MiniProgram_Extend
.
IsOpenCopyRight
),
extModel
.
IsOpenCopyRight
);
}
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
extModel
.
MallBaseId
));
}
return
flag
;
...
...
@@ -261,5 +265,74 @@ namespace Mall.Module.User
flag
=
bottomnavRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Bottomnav_Extend
.
TagId
),
TagId
));
return
flag
;
}
/// <summary>
/// 修改微信小程序配置信息
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetMiniProgramAppConfigModule
(
RB_MiniProgram_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
MallBaseId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_MiniProgram_Extend
.
MiniAppId
),
extModel
.
MiniAppId
},
{
nameof
(
RB_MiniProgram_Extend
.
MiniAppSecret
),
extModel
.
MiniAppSecret
},
{
nameof
(
RB_MiniProgram_Extend
.
WeChatPayMerchants
),
extModel
.
WeChatPayMerchants
},
{
nameof
(
RB_MiniProgram_Extend
.
WeChatApiSecret
),
extModel
.
WeChatApiSecret
},
{
nameof
(
RB_MiniProgram_Extend
.
WeChatPayCertificate
),
extModel
.
WeChatPayCertificate
},
{
nameof
(
RB_MiniProgram_Extend
.
WeChatPayPrivateKey
),
extModel
.
WeChatPayPrivateKey
},
};
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
extModel
.
MallBaseId
));
}
return
flag
;
}
/// <summary>
/// 修改微信小程序商城订阅配置信息
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetMiniProgramMallSubscribeModule
(
RB_MiniProgram_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
MallBaseId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_MiniProgram_Extend
.
OrderSuccessTpl
),
extModel
.
OrderSuccessTpl
},
{
nameof
(
RB_MiniProgram_Extend
.
OrderCancelTpl
),
extModel
.
OrderCancelTpl
},
{
nameof
(
RB_MiniProgram_Extend
.
OrderDeliverGoodsTpl
),
extModel
.
OrderDeliverGoodsTpl
},
{
nameof
(
RB_MiniProgram_Extend
.
RefundTpl
),
extModel
.
RefundTpl
},
{
nameof
(
RB_MiniProgram_Extend
.
ActiveStateTpl
),
extModel
.
ActiveStateTpl
},
{
nameof
(
RB_MiniProgram_Extend
.
AuditResultTpl
),
extModel
.
AuditResultTpl
},
};
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
extModel
.
MallBaseId
));
}
return
flag
;
}
/// <summary>
/// 修改微信小程序分销订阅配置信息
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetMiniProgramMallDistributionModule
(
RB_MiniProgram_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
MallBaseId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_MiniProgram_Extend
.
ReflectSuccessTpl
),
extModel
.
ReflectSuccessTpl
},
{
nameof
(
RB_MiniProgram_Extend
.
ReflectFailTpl
),
extModel
.
ReflectFailTpl
},
{
nameof
(
RB_MiniProgram_Extend
.
MembersLevelChangeTpl
),
extModel
.
MembersLevelChangeTpl
},
};
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
extModel
.
MallBaseId
));
}
return
flag
;
}
}
}
Mall.WebApi/Controllers/User/TenantController.cs
View file @
1fc75ff4
...
...
@@ -297,6 +297,45 @@ namespace Mall.WebApi.Controllers.User
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 修改微信小程序配置信息
/// </summary>
/// <returns></returns>
public
ApiResult
SetMiniProgramAppConfig
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_MiniProgram_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
var
flag
=
programModule
.
SetMiniProgramAppConfigModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 修改微信小程序商城订阅配置信息
/// </summary>
/// <returns></returns>
public
ApiResult
SetMiniProgramMallSubscribe
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_MiniProgram_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
var
flag
=
programModule
.
SetMiniProgramMallSubscribeModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 修改微信小程序分销订阅配置信息
/// </summary>
/// <returns></returns>
public
ApiResult
SetMiniProgramMallDistribution
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_MiniProgram_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
var
flag
=
programModule
.
SetMiniProgramMallDistributionModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 删除底部导航
/// </summary>
...
...
@@ -329,7 +368,10 @@ namespace Mall.WebApi.Controllers.User
/// <returns></returns>
public
ApiResult
SetMiniProgrameCopyRight
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_MiniProgram_Extend
>(
RequestParm
.
msg
.
ToString
());
int
IsOpenCopyRight
=
parms
.
GetInt
(
"IsOpenCopyRight"
,
-
1
);
extModel
.
IsOpenCopyRight
=
IsOpenCopyRight
;
var
flag
=
programModule
.
SetMiniProgramCopyRightModule
(
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