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
cf313656
Commit
cf313656
authored
Sep 28, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
f06dc300
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
179 additions
and
33 deletions
+179
-33
RB_MiAi_BaseInfo.cs
Mall.Model/Entity/Miai/RB_MiAi_BaseInfo.cs
+9
-1
RB_Miniprogram_Template_Extend.cs
.../Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
+22
-0
RB_MiAi_BaseInfo_Extend.cs
Mall.Model/Extend/Miai/RB_MiAi_BaseInfo_Extend.cs
+8
-1
MiaiModule.cs
Mall.Module.Miai/MiaiModule.cs
+2
-0
MallHelper.cs
Mall.WebApi/Controllers/Mall/MallHelper.cs
+75
-15
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+60
-16
MiaiController.cs
Mall.WebApi/Controllers/Miai/MiaiController.cs
+3
-0
No files found.
Mall.Model/Entity/Miai/RB_MiAi_BaseInfo.cs
View file @
cf313656
...
...
@@ -101,7 +101,10 @@ namespace Mall.Model.Entity.Miai
/// 年收入
/// </summary>
public
decimal
YearMoney
{
get
;
set
;
}
/// <summary>
/// 年收入
/// </summary>
public
YearMoneyTypeEnum
?
YearMoneyType
{
get
;
set
;
}
/// <summary>
/// 国家
...
...
@@ -302,5 +305,10 @@ namespace Mall.Model.Entity.Miai
}
public
int
IsFaTie
{
get
;
set
;
}
/// <summary>
/// 行业
/// </summary>
public
string
Industry
{
get
;
set
;
}
}
}
Mall.Model/Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
View file @
cf313656
...
...
@@ -3660,6 +3660,12 @@ namespace Mall.Model.Extend.MarketingCenter
/// </summary>
public
string
Education
{
get
;
set
;
}
/// <summary>
/// 行业
/// </summary>
public
string
Industry
{
get
;
set
;
}
/// <summary>
/// 婚姻状态
/// </summary>
...
...
@@ -3670,6 +3676,22 @@ namespace Mall.Model.Extend.MarketingCenter
/// </summary>
public
int
Score
{
get
;
set
;
}
/// <summary>
/// 是否已认证,0-未认证,1-已认证
/// </summary>
public
int
Authentication
{
get
;
set
;
}
/// <summary>
/// 年收入
/// </summary>
public
string
YearMoneyTypeStr
{
get
;
set
;
}
public
string
IDCardNo
{
get
;
set
;
}
/// <summary>
/// 身高
/// </summary>
public
decimal
Height
{
get
;
set
;
}
/// <summary>
/// 相册
/// </summary>
...
...
Mall.Model/Extend/Miai/RB_MiAi_BaseInfo_Extend.cs
View file @
cf313656
...
...
@@ -12,7 +12,7 @@ namespace Mall.Model.Extend.Miai
/// </summary>
public
List
<
string
>
AlbumList
{
get
;
set
;
}
public
string
Name
{
get
;
set
;
}
...
...
@@ -81,6 +81,13 @@ namespace Mall.Model.Extend.Miai
/// 车
/// </summary>
public
string
CarInfoStr
{
get
;
set
;
}
/// <summary>
/// 年收入信息
/// </summary>
public
string
YearMoneyTypeStr
{
get
;
set
;
}
/// <summary>
/// 房信息
...
...
Mall.Module.Miai/MiaiModule.cs
View file @
cf313656
...
...
@@ -1618,6 +1618,8 @@ namespace Mall.Module.Miai
{
nameof
(
RB_MiAi_BaseInfo_Extend
.
DWCity
),
model
.
DWCity
},
{
nameof
(
RB_MiAi_BaseInfo_Extend
.
DWProvince
),
model
.
DWProvince
},
{
nameof
(
RB_MiAi_BaseInfo_Extend
.
DWDistrict
),
model
.
DWDistrict
},
{
nameof
(
RB_MiAi_BaseInfo_Extend
.
Industry
),
model
.
Industry
},
{
nameof
(
RB_MiAi_BaseInfo_Extend
.
YearMoneyType
),
model
.
YearMoneyType
},
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
Mall.WebApi/Controllers/Mall/MallHelper.cs
View file @
cf313656
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
View file @
cf313656
...
...
@@ -45,7 +45,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
public
ApiResult
GetForumList
()
{
var
req
=
base
.
RequestParm
;
...
...
@@ -69,7 +70,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
public
ApiResult
GetActivityPageList
()
{
var
parms
=
RequestParm
;
...
...
@@ -132,7 +134,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
public
ApiResult
GetActivityInfo
()
{
var
userInfo
=
AppletUserInfo
;
...
...
@@ -334,7 +337,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
public
ApiResult
GetSimpleActivityPageList
()
{
var
parms
=
RequestParm
;
...
...
@@ -573,7 +577,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
public
ApiResult
GetActivityDiscussPageList
()
{
var
parms
=
RequestParm
;
...
...
@@ -598,7 +603,7 @@ namespace Mall.WebApi.Controllers.MallBase
{
x
.
Id
,
x
.
UserId
,
UserName
=
!
string
.
IsNullOrWhiteSpace
(
x
.
CreateByUserName
)
?
x
.
CreateByUserName
:
x
.
UserName
,
UserName
=
!
string
.
IsNullOrWhiteSpace
(
x
.
CreateByUserName
)
?
x
.
CreateByUserName
:
x
.
UserName
,
x
.
Photo
,
x
.
Sex
,
x
.
Content
,
...
...
@@ -634,7 +639,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
public
ApiResult
GetActivityDiscussCount
()
{
var
parms
=
RequestParm
;
...
...
@@ -669,7 +675,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
public
ApiResult
GetActivityReplyPageList
()
{
var
parms
=
RequestParm
;
...
...
@@ -1223,10 +1230,10 @@ namespace Mall.WebApi.Controllers.MallBase
return
ApiResult
.
Failed
(
"请选择定位省市区"
);
}
if
(
baseInfo
.
YearMoney
==
0
)
{
return
ApiResult
.
Failed
(
"请输入年收入"
);
}
//
if (baseInfo.YearMoney == 0)
//
{
//
return ApiResult.Failed("请输入年收入");
//
}
if
(!
baseInfo
.
EducationType
.
HasValue
||
(
int
)
baseInfo
.
EducationType
==
0
)
{
return
ApiResult
.
Failed
(
"请选择学历"
);
...
...
@@ -1270,7 +1277,8 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
HttpPost
]
public
ApiResult
GetMiAiBaseIfo
()
{
...
...
@@ -1399,6 +1407,9 @@ namespace Mall.WebApi.Controllers.MallBase
ShenXiao
=
string
.
IsNullOrWhiteSpace
(
oldBaseInfo
.
Birthday
)
?
""
:
StringHelper
.
GetShengXiao
(
Convert
.
ToDateTime
((
oldBaseInfo
.
Birthday
))),
//生肖
ConoldBaseInfostellation
=
string
.
IsNullOrWhiteSpace
(
oldBaseInfo
.
Birthday
)
?
""
:
StringHelper
.
GetAtomFromBirthday
(
Convert
.
ToDateTime
((
oldBaseInfo
.
Birthday
))),
//星座
MarriageStr
=
(
oldBaseInfo
.
Marriage
.
HasValue
&&
oldBaseInfo
.
Marriage
.
Value
>
0
)
?
EnumHelper
.
GetEnumName
(
oldBaseInfo
.
Marriage
)
:
""
,
YearMoneyTypeStr
=
(
oldBaseInfo
.
YearMoneyType
.
HasValue
&&
oldBaseInfo
.
YearMoneyType
.
Value
>
0
)
?
EnumHelper
.
GetEnumName
(
oldBaseInfo
.
YearMoneyType
)
:
""
,
YearMoneyType
=
oldBaseInfo
.
YearMoneyType
??
0
,
Industry
=
oldBaseInfo
.
Industry
??
""
,
Marriage
=
oldBaseInfo
.
Marriage
??
0
,
Job
=
oldBaseInfo
.
Job
??
""
,
WorkUnit
=
oldBaseInfo
?.
WorkUnit
??
""
,
...
...
@@ -1460,7 +1471,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// 获取会员基础信息
/// </summary>
/// <returns></returns>
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
HttpPost
]
public
ApiResult
GetBaseInfoPageList
()
{
...
...
@@ -1532,6 +1544,8 @@ namespace Mall.WebApi.Controllers.MallBase
lastItem
.
Age
=
tempGood
.
Age
.
ToString
();
lastItem
.
Marriage
=
(
tempGood
.
Marriage
.
HasValue
&&
tempGood
.
Marriage
.
Value
>
0
)
?
Common
.
Plugin
.
EnumHelper
.
GetEnumName
(
tempGood
.
Marriage
)
:
""
;
lastItem
.
Education
=
(
tempGood
.
EducationType
.
HasValue
&&
tempGood
.
EducationType
.
Value
>
0
)
?
Common
.
Plugin
.
EnumHelper
.
GetEnumName
(
tempGood
.
EducationType
)
:
""
;
lastItem
.
YearMoneyTypeStr
=
(
tempGood
.
YearMoneyType
.
HasValue
&&
tempGood
.
YearMoneyType
.
Value
>
0
)
?
EnumHelper
.
GetEnumName
(
tempGood
.
YearMoneyType
)
:
""
;
lastItem
.
Industry
=
tempGood
.
Industry
??
""
;
lastItem
.
Score
=
0
;
lastItem
.
Album
=
tempGood
.
Album
;
if
(!
string
.
IsNullOrWhiteSpace
(
lastItem
.
Album
))
...
...
@@ -1552,7 +1566,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// 获取会员基础信息
/// </summary>
/// <returns></returns>
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
HttpPost
]
public
ApiResult
GetBaseInfoQueryList
()
{
...
...
@@ -1641,12 +1656,27 @@ namespace Mall.WebApi.Controllers.MallBase
Id
=
Convert
.
ToInt32
(
x
.
Value
)
}));
}
/// <summary>
/// 获取年收入枚举
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetYearMoneyTypeEnumList
()
{
var
list
=
EnumHelper
.
GetEnumList
(
typeof
(
Common
.
Enum
.
MiAi
.
YearMoneyTypeEnum
));
return
ApiResult
.
Success
(
""
,
list
.
OrderBy
(
x
=>
Convert
.
ToInt32
(
x
.
Value
)).
Select
(
x
=>
new
{
Name
=
x
.
Key
,
Id
=
Convert
.
ToInt32
(
x
.
Value
)
}));
}
/// <summary>
/// 获取每日随机信息
/// </summary>
/// <returns></returns>
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
AllowAnonymous
]
[
RateValve
(
Policy
=
Policy
.
Ip
,
Limit
=
10
,
Duration
=
60
)]
[
HttpPost
]
public
ApiResult
GetDailyRandomList
()
{
...
...
@@ -1724,6 +1754,20 @@ namespace Mall.WebApi.Controllers.MallBase
lastItem
.
Education
=
(
tempGood
.
EducationType
.
HasValue
&&
tempGood
.
EducationType
.
Value
>
0
)
?
Common
.
Plugin
.
EnumHelper
.
GetEnumName
(
tempGood
.
EducationType
)
:
""
;
lastItem
.
Score
=
0
;
lastItem
.
Album
=
tempGood
.
Album
;
lastItem
.
Height
=
tempGood
.
Height
;
lastItem
.
Industry
=
tempGood
.
Industry
;
if
(!
string
.
IsNullOrWhiteSpace
(
tempGood
.
IDCardNo
))
{
lastItem
.
Authentication
=
1
;
if
(
tempGood
.
IDCardNo
.
Length
==
18
)
{
lastItem
.
IDCardNo
=
tempGood
.
IDCardNo
.
Substring
(
8
,
2
);
}
else
if
(
tempGood
.
IDCardNo
.
Length
==
15
)
{
lastItem
.
IDCardNo
=
tempGood
.
IDCardNo
.
Substring
(
6
,
2
);
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
lastItem
.
Album
))
{
lastItem
.
AlbumList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
lastItem
.
Album
);
...
...
Mall.WebApi/Controllers/Miai/MiaiController.cs
View file @
cf313656
...
...
@@ -689,6 +689,9 @@ namespace Mall.WebApi.Controllers.MallBase
ConoldBaseInfostellation
=
string
.
IsNullOrWhiteSpace
(
oldBaseInfo
.
Birthday
)
?
""
:
StringHelper
.
GetAtomFromBirthday
(
Convert
.
ToDateTime
((
oldBaseInfo
.
Birthday
))),
//星座
MarriageStr
=
(
oldBaseInfo
.
Marriage
.
HasValue
&&
oldBaseInfo
.
Marriage
.
Value
>
0
)
?
EnumHelper
.
GetEnumName
(
oldBaseInfo
.
Marriage
)
:
""
,
Marriage
=
oldBaseInfo
.
Marriage
??
0
,
YearMoneyTypeStr
=
(
oldBaseInfo
.
YearMoneyType
.
HasValue
&&
oldBaseInfo
.
YearMoneyType
.
Value
>
0
)
?
EnumHelper
.
GetEnumName
(
oldBaseInfo
.
YearMoneyType
)
:
""
,
YearMoneyType
=
oldBaseInfo
.
YearMoneyType
??
0
,
Industry
=
oldBaseInfo
.
Industry
??
""
,
Job
=
oldBaseInfo
.
Job
??
""
,
WorkUnit
=
oldBaseInfo
?.
WorkUnit
??
""
,
YearMoney
=
oldBaseInfo
?.
YearMoney
??
0
,
...
...
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