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
ceb29aa4
Commit
ceb29aa4
authored
Sep 24, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取用户类型
parent
6742a15b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
2 deletions
+26
-2
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+1
-0
UserModule.cs
Mall.Module.User/UserModule.cs
+11
-2
GuideCarController.cs
Mall.WebApi/Controllers/Product/GuideCarController.cs
+3
-0
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+1
-0
AppletUserController.cs
Mall.WebApi/Controllers/User/AppletUserController.cs
+10
-0
No files found.
Mall.Module.Product/GuideCarModule.cs
View file @
ceb29aa4
...
...
@@ -816,6 +816,7 @@ namespace Mall.Module.Product
{
nameof
(
RB_Goods
.
IntegralComment
),
demodel
.
IntegralComment
},
{
nameof
(
RB_Goods
.
IntegralCommentType
),
demodel
.
IntegralCommentType
},
{
nameof
(
RB_Goods
.
GoodsType
),
demodel
.
GoodsType
},
{
nameof
(
RB_Goods
.
GoodsPageType
),
demodel
.
GoodsPageType
},
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
Mall.Module.User/UserModule.cs
View file @
ceb29aa4
...
...
@@ -4439,8 +4439,17 @@ namespace Mall.Module.User
#
endregion
#
region
个人中心
/// <summary>
/// 获取用户类型
/// </summary>
/// <param name="userInfo"></param>
/// <returns></returns>
public
ApiResult
GetAppletUserPageType
(
AppletUserInfo
userInfo
)
{
var
mmodel
=
miniProgramRepository
.
GetMiniProgramRepository
(
new
RB_MiniProgram_Extend
()
{
MallBaseId
=
userInfo
.
MallBaseId
});
var
umodel
=
member_UserRepository
.
GetEntity
(
userInfo
.
UserId
);
return
ApiResult
.
Success
(
""
,
new
{
mmodel
.
IsOpenSchool
,
UserPageType
=
mmodel
.
IsOpenSchool
==
1
?
umodel
.
UserPageType
:
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
All
});
}
/// <summary>
/// 获取个人中心统计
...
...
Mall.WebApi/Controllers/Product/GuideCarController.cs
View file @
ceb29aa4
...
...
@@ -378,6 +378,8 @@ namespace Mall.WebApi.Controllers.MallBase
model
?.
TargetDateList
,
model
?.
IntegralComment
,
model
?.
IntegralCommentType
,
model
?.
GoodsPageType
,
GoodsPageTypeName
=
model
?.
GoodsPageType
.
GetEnumName
()
??
""
,
});
}
...
...
@@ -818,6 +820,7 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
GoodsClassify
=
1
;
demodel
.
IntegralComment
??=
0
;
//评论反积分
demodel
.
IntegralCommentType
??=
1
;
demodel
.
GoodsPageType
??=
GoodsPageTypeEnum
.
All
;
bool
flag
=
guideCarModule
.
SetProductGoodsInfo
(
demodel
);
if
(
flag
)
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
ceb29aa4
...
...
@@ -2121,6 +2121,7 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
GoodsClassify
=
0
;
demodel
.
IntegralComment
??=
0
;
//评论反积分
demodel
.
IntegralCommentType
??=
1
;
demodel
.
GoodsPageType
??=
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
All
;
if
(
demodel
.
IsProxy
==
1
&&
demodel
.
CostPrice
>
0
)
{
decimal
ProxyMoney
=
0
;
...
...
Mall.WebApi/Controllers/User/AppletUserController.cs
View file @
ceb29aa4
...
...
@@ -1037,6 +1037,16 @@ namespace Mall.WebApi.Controllers.User
// return userModule.GetAppletUserCenterStatistics(userInfo.UserId, userInfo.TenantId, userInfo.MallBaseId);
//}
/// <summary>
/// 获取用户类型
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetAppletUserPageType
()
{
var
userInfo
=
AppletUserInfo
;
return
userModule
.
GetAppletUserPageType
(
userInfo
);
}
#
endregion
#
region
优惠券
...
...
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