Commit 1dd84591 authored by 黄奎's avatar 黄奎

页面修改

parent 560ea47d
......@@ -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>
/// 获取小程序列表
......
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment