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
1dd84591
Commit
1dd84591
authored
Oct 28, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
560ea47d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
MallBaseModule.cs
Mall.Module.BaseSetUp/MallBaseModule.cs
+0
-13
AppletLoginController.cs
Mall.WebApi/Controllers/User/AppletLoginController.cs
+16
-2
No files found.
Mall.Module.BaseSetUp/MallBaseModule.cs
View file @
1dd84591
...
...
@@ -39,19 +39,6 @@ namespace Mall.Module.BaseSetUp
private
readonly
RB_Video_StoreRepository
videoStoreRepository
=
new
RB_Video_StoreRepository
();
#
region
基础设置
/// <summary>
/// 获取小程序列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_MallBase_Extend
>
GetPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_MallBase_Extend
query
)
{
return
mallBaseRepository
.
GetPageListRepository
(
pageIndex
,
pageSize
,
out
rowCount
,
query
);
}
/// <summary>
/// 获取小程序列表
...
...
Mall.WebApi/Controllers/User/AppletLoginController.cs
View file @
1dd84591
...
...
@@ -22,6 +22,7 @@ using Mall.Module.Miai;
using
Dnc.Api.Throttle
;
using
Microsoft.AspNetCore.Authorization
;
using
Mall.WebApi.Helper
;
using
Mall.Module.BaseSetUp
;
namespace
Mall.WebApi.Controllers.User
{
...
...
@@ -44,7 +45,12 @@ namespace Mall.WebApi.Controllers.User
private
readonly
Module
.
Reserve
.
ReserveModule
reserveModule
=
new
Module
.
Reserve
.
ReserveModule
();
private
readonly
Module
.
User
.
MemberGroupModule
memberGroupModule
=
new
MemberGroupModule
();
private
readonly
MemberGroupModule
memberGroupModule
=
new
MemberGroupModule
();
/// <summary>
/// 商城基础配置处理类对象
/// </summary>
private
readonly
MallBaseModule
mallBaseModule
=
new
MallBaseModule
();
#
region
小程序登录
/// <summary>
...
...
@@ -109,12 +115,20 @@ namespace Mall.WebApi.Controllers.User
if
(
groupModel
!=
null
&&
groupModel
.
GroupId
>
0
)
{
demodel
.
BelongGroupIds
=
groupModel
?.
GroupId
.
ToString
();
}
else
{
demodel
.
BelongGroupIds
=
""
;
}
var
mallBaseModel
=
mallBaseModule
.
GetListRepository
(
new
Model
.
Extend
.
BaseSetUp
.
RB_MallBase_Extend
()
{
TenantId
=
requestParm
.
TenantId
,
MallBaseId
=
requestParm
.
MallBaseId
})?.
FirstOrDefault
();
if
(
mallBaseModel
!=
null
&&
mallBaseModel
.
LookWeChatTimes
>
0
)
{
demodel
.
LookTimes
=
mallBaseModel
.
LookWeChatTimes
;
}
bool
IsLogin
=
false
;
var
opcache
=
UserReidsCache
.
GetMiniAppUsetOpenId
(
demodel
.
OpenId
);
if
(
opcache
!=
null
&&
!
string
.
IsNullOrEmpty
(
opcache
.
UserOpenId
))
...
...
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