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
f0a4c534
Commit
f0a4c534
authored
Mar 16, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sdzq' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
8bf1b121
07cd2b23
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
53 deletions
+78
-53
DynamicModule.cs
Mall.Module.Education/DynamicModule.cs
+29
-10
AppletSchoolController.cs
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
+2
-0
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+47
-43
No files found.
Mall.Module.Education/DynamicModule.cs
View file @
f0a4c534
...
@@ -447,7 +447,7 @@ namespace Mall.Module.Education
...
@@ -447,7 +447,7 @@ namespace Mall.Module.Education
Type
=
Common
.
Enum
.
MiAi
.
MessageTypeEnum
.
CircleReply
,
Type
=
Common
.
Enum
.
MiAi
.
MessageTypeEnum
.
CircleReply
,
UserId
=
article
.
CreateBy
??
0
,
UserId
=
article
.
CreateBy
??
0
,
SourceId
=
comment
.
ArticleId
,
SourceId
=
comment
.
ArticleId
,
Content
=
Common
.
Plugin
.
StringHelper
.
FromUnicodeString
(
comment
.
Content
),
Content
=
Common
.
Plugin
.
StringHelper
.
FromUnicodeString
(
comment
.
Content
),
Status
=
0
,
Status
=
0
,
TenantId
=
comment
.
TenantId
,
TenantId
=
comment
.
TenantId
,
MallBaseId
=
comment
.
MallBaseId
,
MallBaseId
=
comment
.
MallBaseId
,
...
@@ -549,7 +549,7 @@ namespace Mall.Module.Education
...
@@ -549,7 +549,7 @@ namespace Mall.Module.Education
public
List
<
Rb_Education_Dynamic_Extend
>
GetMiAiAllDynamicList
(
Rb_Education_Dynamic_Extend
model
)
public
List
<
Rb_Education_Dynamic_Extend
>
GetMiAiAllDynamicList
(
Rb_Education_Dynamic_Extend
model
)
{
{
List
<
Rb_Education_Dynamic_Extend
>
articleList
=
new
List
<
Rb_Education_Dynamic_Extend
>();
List
<
Rb_Education_Dynamic_Extend
>
articleList
=
new
List
<
Rb_Education_Dynamic_Extend
>();
articleList
=
articleRepository
.
GetMiAiAllDynamicList
(
model
);
articleList
=
articleRepository
.
GetMiAiAllDynamicList
(
model
);
DecoratorDynameicArticle
(
articleList
);
DecoratorDynameicArticle
(
articleList
);
return
articleList
;
return
articleList
;
}
}
...
@@ -564,7 +564,26 @@ namespace Mall.Module.Education
...
@@ -564,7 +564,26 @@ namespace Mall.Module.Education
/// <returns></returns>
/// <returns></returns>
public
Rb_Education_Dynamic_Extend
GetMiAiDynamicDetial
(
Rb_Education_Dynamic_Extend
model
)
public
Rb_Education_Dynamic_Extend
GetMiAiDynamicDetial
(
Rb_Education_Dynamic_Extend
model
)
{
{
return
articleRepository
.
GetMiAiDynamicDetial
(
model
);
Rb_Education_Dynamic_Extend
article
=
articleRepository
.
GetMiAiDynamicDetial
(
model
);
if
(
article
==
null
)
{
return
article
;
}
article
.
LikeList
=
likeRepository
.
GetDynamicLikeList
(
new
Rb_Education_DynamicLike_Extend
{
ArticleId
=
article
.
Id
});
article
.
CommentList
=
commentRepository
.
GetDynamicCommentList
(
new
Rb_Education_DynamicComment_Extend
{
ArticleId
=
article
.
Id
});
foreach
(
var
common
in
article
.
CommentList
)
{
if
(
common
.
CommentId
!=
null
&&
common
.
CommentId
>
0
)
{
Rb_Education_DynamicComment_Extend
byReplayCommon
=
article
.
CommentList
.
Where
(
t
=>
t
.
Id
==
common
.
CommentId
.
Value
).
FirstOrDefault
();
if
(
byReplayCommon
!=
null
)
{
common
.
ByReplyEmName
=
byReplayCommon
.
UserName
;
common
.
ByReplyEmpId
=
byReplayCommon
.
UserId
;
}
}
}
return
article
;
}
}
...
...
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
View file @
f0a4c534
...
@@ -15,6 +15,7 @@ using Newtonsoft.Json.Linq;
...
@@ -15,6 +15,7 @@ using Newtonsoft.Json.Linq;
using
Mall.Common.Plugin
;
using
Mall.Common.Plugin
;
using
Google.Protobuf.WellKnownTypes
;
using
Google.Protobuf.WellKnownTypes
;
using
Mall.Model.Entity.Education
;
using
Mall.Model.Entity.Education
;
using
Microsoft.AspNetCore.Authorization
;
namespace
Mall.WebApi.Controllers.Education
namespace
Mall.WebApi.Controllers.Education
{
{
...
@@ -634,6 +635,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -634,6 +635,7 @@ namespace Mall.WebApi.Controllers.Education
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
/// <returns></returns>
/// <returns></returns>
[
AllowAnonymous
]
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetMiAiDynamicList
(
object
requestMsg
)
public
ApiResult
GetMiAiDynamicList
(
object
requestMsg
)
{
{
...
...
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
View file @
f0a4c534
...
@@ -874,7 +874,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -874,7 +874,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
}
}
[
AllowAnonymous
]
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetMiAiBaseIfo
()
public
ApiResult
GetMiAiBaseIfo
()
{
{
...
@@ -887,10 +887,10 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -887,10 +887,10 @@ namespace Mall.WebApi.Controllers.MallBase
int
MyFollowId
=
0
;
int
MyFollowId
=
0
;
int
OtherFollowId
=
0
;
int
OtherFollowId
=
0
;
if
(
userInfo
!=
null
)
{
var
oldList
=
miaiModule
.
GetFollowMemberList
(
new
RB_MiAi_FollowMember_Extend
{
Status
=
0
,
UserId
=
userId
,
CreateBy
=
userInfo
.
UserId
,
MallBaseId
=
userInfo
.
MallBaseId
,
TenantId
=
userInfo
.
TenantId
});
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
});
var
oldOtherList
=
miaiModule
.
GetFollowMemberList
(
new
RB_MiAi_FollowMember_Extend
{
Status
=
0
,
UserId
=
userInfo
.
UserId
,
CreateBy
=
userId
,
MallBaseId
=
userInfo
.
MallBaseId
,
TenantId
=
userInfo
.
TenantId
});
var
oldUserInfo
=
miaiModule
.
GetMemberUserInfo
(
userId
);
var
oldBaseInfo
=
miaiModule
.
GetBaseInfoList
(
new
RB_MiAi_BaseInfo_Extend
{
UserId
=
userId
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
}).
FirstOrDefault
();
if
(
userId
!=
userInfo
.
UserId
)
if
(
userId
!=
userInfo
.
UserId
)
{
{
...
@@ -924,14 +924,18 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -924,14 +924,18 @@ namespace Mall.WebApi.Controllers.MallBase
SourceId
=
userId
,
SourceId
=
userId
,
Content
=
"用户访问了您的自画像"
,
Content
=
"用户访问了您的自画像"
,
Status
=
0
,
Status
=
0
,
TenantId
=
oldUserInfo
.
TenantId
,
TenantId
=
RequestParm
.
TenantId
,
MallBaseId
=
oldUserInfo
.
MallBaseId
,
MallBaseId
=
RequestParm
.
MallBaseId
,
CreateBy
=
userInfo
.
UserId
,
CreateBy
=
userInfo
.
UserId
,
CreateDate
=
DateTime
.
Now
,
CreateDate
=
DateTime
.
Now
,
UpdateDate
=
DateTime
.
Now
UpdateDate
=
DateTime
.
Now
});
});
}
}
}
var
oldUserInfo
=
miaiModule
.
GetMemberUserInfo
(
userId
);
var
oldBaseInfo
=
miaiModule
.
GetBaseInfoList
(
new
RB_MiAi_BaseInfo_Extend
{
UserId
=
userId
,
TenantId
=
RequestParm
.
TenantId
,
MallBaseId
=
RequestParm
.
MallBaseId
}).
FirstOrDefault
();
...
@@ -1304,7 +1308,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1304,7 +1308,7 @@ namespace Mall.WebApi.Controllers.MallBase
{
{
return
ApiResult
.
Failed
(
"动态id不为空"
);
return
ApiResult
.
Failed
(
"动态id不为空"
);
}
}
Rb_Education_Dynamic_Extend
articele
=
dynamicModule
.
GetDynamicDetial
(
new
Rb_Education_Dynamic_Extend
{
UserId
=
userInfo
.
UserId
,
Id
=
articleId
});
Rb_Education_Dynamic_Extend
articele
=
dynamicModule
.
Get
MiAi
DynamicDetial
(
new
Rb_Education_Dynamic_Extend
{
UserId
=
userInfo
.
UserId
,
Id
=
articleId
});
if
(
articele
!=
null
)
if
(
articele
!=
null
)
{
{
var
data
=
DecoratorDynameicResult
(
articele
);
var
data
=
DecoratorDynameicResult
(
articele
);
...
...
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