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
87972d44
Commit
87972d44
authored
Mar 08, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
e7ca1dad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+23
-26
No files found.
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
View file @
87972d44
...
...
@@ -94,7 +94,7 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
ForumId
,
x
.
ForumName
,
x
.
ForumIcon
,
Deadline
=
x
.
IsOpenEnroll
==
1
?
x
.
Deadline
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
:
""
,
Deadline
=
x
.
IsOpenEnroll
==
1
?
x
.
Deadline
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
:
""
,
CreateDate
=
x
.
CreateDate
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
});
return
ApiResult
.
Success
(
""
,
pagelist
);
...
...
@@ -675,35 +675,32 @@ namespace Mall.WebApi.Controllers.MallBase
int
MyFollowId
=
0
;
int
OtherFollowId
=
0
;
if
(
userId
==
0
)
{
userId
=
userInfo
.
UserId
;
}
var
oldList
=
miaiModule
.
GetFollowMemberList
(
new
RB_MiAi_FollowMember_Extend
{
Status
=
0
,
UserId
=
userId
,
CreateBy
=
userInfo
.
UserId
,
MallBaseId
=
userInfo
.
MallBaseId
,
TenantId
=
userInfo
.
TenantId
});
var
oldOtherList
=
miaiModule
.
GetFollowMemberList
(
new
RB_MiAi_FollowMember_Extend
{
Status
=
0
,
UserId
=
userInfo
.
UserId
,
CreateBy
=
userId
,
MallBaseId
=
userInfo
.
MallBaseId
,
TenantId
=
userInfo
.
TenantId
});
if
(
oldList
!=
null
&&
oldList
.
Any
()
&&
oldOtherList
!=
null
&&
oldOtherList
.
Any
()
)
if
(
userId
!=
userInfo
.
UserId
)
{
isFollow
=
3
;
MyFollowId
=
oldList
.
FirstOrDefault
()?.
ID
??
0
;
OtherFollowId
=
oldOtherList
.
FirstOrDefault
()?.
ID
??
0
;
}
else
if
(
oldList
!=
null
&&
oldList
.
Any
())
{
isFollow
=
1
;
MyFollowId
=
oldList
.
FirstOrDefault
()?.
ID
??
0
;
}
else
if
(
oldOtherList
!=
null
&&
oldOtherList
.
Any
())
{
isFollow
=
2
;
OtherFollowId
=
oldOtherList
.
FirstOrDefault
()?.
ID
??
0
;
}
else
{
isFollow
=
0
;
if
(
oldList
!=
null
&&
oldList
.
Any
()
&&
oldOtherList
!=
null
&&
oldOtherList
.
Any
())
{
isFollow
=
3
;
MyFollowId
=
oldList
.
FirstOrDefault
()?.
ID
??
0
;
OtherFollowId
=
oldOtherList
.
FirstOrDefault
()?.
ID
??
0
;
}
else
if
(
oldList
!=
null
&&
oldList
.
Any
())
{
isFollow
=
1
;
MyFollowId
=
oldList
.
FirstOrDefault
()?.
ID
??
0
;
}
else
if
(
oldOtherList
!=
null
&&
oldOtherList
.
Any
())
{
isFollow
=
2
;
OtherFollowId
=
oldOtherList
.
FirstOrDefault
()?.
ID
??
0
;
}
else
{
isFollow
=
0
;
}
}
var
oldUserInfo
=
miaiModule
.
GetMemberUserInfo
(
userId
);
var
oldBaseInfo
=
miaiModule
.
GetBaseInfoList
(
new
RB_MiAi_BaseInfo_Extend
{
UserId
=
userId
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
}).
FirstOrDefault
();
...
...
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