Commit e30d75e8 authored by 吴春's avatar 吴春

提交代码

parent 4e4c4895
......@@ -120,7 +120,8 @@ namespace Mall.WebApi.Controllers.MallBase
{
return ApiResult.ParamIsNull();
}
if (userInfo == null) {
if (userInfo == null)
{
userInfo = new AppletUserInfo
{
UserId = 0,
......@@ -654,7 +655,7 @@ namespace Mall.WebApi.Controllers.MallBase
[HttpPost]
public ApiResult GetMiaiMessageCenter()
{
var userInfo = AppletUserInfo;
var userInfo = AppletUserInfo;
var list = miaiModule.GetMiaiMessageCenter(userInfo.UserId, userInfo.TenantId, userInfo.MallBaseId);
return ApiResult.Success("", list);
}
......@@ -664,7 +665,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetMiaiMessageVisitorStatistics() {
public ApiResult GetMiaiMessageVisitorStatistics()
{
var userInfo = AppletUserInfo;
var parms = JObject.Parse(RequestParm.msg.ToString());
int Type = parms.GetInt("Type", 1);// 类型 1谁看过我 2我看过谁
......@@ -678,7 +680,8 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetMiaiMessageVisitorPageList() {
public ApiResult GetMiaiMessageVisitorPageList()
{
var parms = RequestParm;
var userInfo = AppletUserInfo;
ResultPageModel pagelist = JsonConvert.DeserializeObject<ResultPageModel>(parms.msg.ToString());
......@@ -690,7 +693,8 @@ namespace Mall.WebApi.Controllers.MallBase
{
demodel.UserId = userInfo.UserId;
}
else {
else
{
demodel.CreateBy = userInfo.UserId;
}
var list = miaiModule.GetMiaiMessageVisitorPageList(pagelist.pageIndex, pagelist.pageSize, out long count, demodel);
......@@ -912,8 +916,16 @@ namespace Mall.WebApi.Controllers.MallBase
int MyFollowId = 0;
int OtherFollowId = 0;
if (userInfo!=null)
if (userInfo == null)
{
userInfo = new AppletUserInfo
{
UserId = RequestParm.UserId,
MallBaseId = RequestParm.MallBaseId,
TenantId = RequestParm.TenantId
};
}
if (userInfo != null && userInfo.UserId > 0)
{
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 });
......@@ -959,11 +971,11 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
var oldUserInfo = miaiModule.GetMemberUserInfo(userId);
var oldBaseInfo = miaiModule.GetBaseInfoList(new RB_MiAi_BaseInfo_Extend { UserId = userId, TenantId = RequestParm.TenantId, MallBaseId = RequestParm.MallBaseId }).FirstOrDefault();
if (oldUserInfo != null && oldUserInfo.Id > 0)
{
......@@ -1287,7 +1299,7 @@ namespace Mall.WebApi.Controllers.MallBase
return ApiResult.Failed("发布内容检测失败,请稍后再试");
}
}
#endregion
article.CreateTime = DateTime.Now;
article.CreateBy = userInfo.UserId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment