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
7f677bcb
Commit
7f677bcb
authored
Oct 28, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
15cbfc16
e83c1ff5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
MemberLookModule.cs
Mall.Module.User/MemberLookModule.cs
+2
-2
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+8
-3
No files found.
Mall.Module.User/MemberLookModule.cs
View file @
7f677bcb
...
...
@@ -72,12 +72,12 @@ namespace Mall.Module.User
/// <param name="userId"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
public
object
GetWeChatLookUser
(
int
userId
,
AppletUserInfo
userInfo
)
public
object
GetWeChatLookUser
(
int
userId
,
AppletUserInfo
userInfo
,
out
bool
IsLook
)
{
string
STime
=
DateTime
.
Now
.
ToString
(
"yyyy-MM"
)
+
"-01"
;
string
ETime
=
Convert
.
ToDateTime
(
STime
).
AddMonths
(
1
).
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd"
);
//首先查询是否已查看
bool
IsLook
=
false
;
IsLook
=
false
;
var
list
=
member_LookRepository
.
GetMemberLookListRepository
(
new
RB_Member_Look_Extend
()
{
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userId
,
CreateBy
=
userInfo
.
UserId
,
StartTime
=
STime
,
EndTime
=
ETime
});
if
(
list
.
Any
())
{
...
...
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
View file @
7f677bcb
...
...
@@ -1303,6 +1303,8 @@ namespace Mall.WebApi.Controllers.MallBase
};
}
object
LookInfo
=
null
;
if
(
userId
>
0
)
{
var
oldUserInfo
=
miaiModule
.
GetMemberUserInfo
(
userId
);
...
...
@@ -1317,7 +1319,10 @@ namespace Mall.WebApi.Controllers.MallBase
{
if
(
oldBaseInfo
!=
null
&&
oldBaseInfo
.
Id
>
0
)
{
oldBaseInfo
.
WechatNo
=
""
;
LookInfo
=
memberLookModule
.
GetWeChatLookUser
(
userId
,
userInfo
,
out
bool
IsLook
);
if
(!
IsLook
)
{
oldBaseInfo
.
WechatNo
=
""
;
}
}
oldUserInfo
.
Moblie
=
""
;
if
(
oldList
!=
null
&&
oldList
.
Any
()
&&
oldOtherList
!=
null
&&
oldOtherList
.
Any
())
...
...
@@ -1356,7 +1361,6 @@ namespace Mall.WebApi.Controllers.MallBase
CreateDate
=
DateTime
.
Now
,
UpdateDate
=
DateTime
.
Now
});
}
}
...
...
@@ -1403,6 +1407,7 @@ namespace Mall.WebApi.Controllers.MallBase
oldUserInfo
.
Id
,
oldUserInfo
.
Name
,
oldUserInfo
.
Photo
,
LookInfo
,
WechatNo
=
oldBaseInfo
.
WechatNo
??
""
,
Moblie
=
oldUserInfo
.
Moblie
??
""
,
IsAttestation
,
...
...
@@ -2260,7 +2265,7 @@ namespace Mall.WebApi.Controllers.MallBase
return
ApiResult
.
ParamIsNull
();
}
var
RObj
=
memberLookModule
.
GetWeChatLookUser
(
UserId
,
userInfo
);
var
RObj
=
memberLookModule
.
GetWeChatLookUser
(
UserId
,
userInfo
,
out
_
);
return
ApiResult
.
Success
(
""
,
RObj
);
}
...
...
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