|
|
@@ -11,7 +11,7 @@ module.exports = app => {
|
|
|
ctx.body = { code: 0, msg: '参数错误:请提供标段ID数组', data: null };
|
|
|
return;
|
|
|
}
|
|
|
- const result = await ctx.service.weappAttention.followSections(tenderIds, ctx.projectAccount.id);
|
|
|
+ const result = await ctx.service.weappAttention.followSections(tenderIds, ctx.session.sessionUser.id);
|
|
|
if (result) {
|
|
|
ctx.body = { code: 0, msg: '关注成功', data: null };
|
|
|
} else {
|
|
|
@@ -31,7 +31,7 @@ module.exports = app => {
|
|
|
ctx.body = { code: 0, msg: '参数错误:请提供关注ID', data: null };
|
|
|
return;
|
|
|
}
|
|
|
- const result = await ctx.service.weappAttention.unfollowSections(attentionIds, ctx.projectAccount.id);
|
|
|
+ const result = await ctx.service.weappAttention.unfollowSections(attentionIds, ctx.session.sessionUser.id);
|
|
|
if (result) {
|
|
|
ctx.body = { code: 0, msg: '取消关注成功', data: null };
|
|
|
} else {
|
|
|
@@ -46,7 +46,7 @@ module.exports = app => {
|
|
|
async followedList() {
|
|
|
const { ctx } = this;
|
|
|
try {
|
|
|
- const result = await ctx.service.weappAttention.getFollowedSections(ctx.projectAccount.id);
|
|
|
+ const result = await ctx.service.weappAttention.getFollowedSections(ctx.session.sessionUser.id);
|
|
|
ctx.body = { code: 0, msg: '', data: result };
|
|
|
} catch (error) {
|
|
|
ctx.body = { code: -1, msg: error.toString(), data: null };
|
|
|
@@ -62,7 +62,7 @@ module.exports = app => {
|
|
|
ctx.body = { code: 0, msg: '参数错误:请提供标段ID', data: null };
|
|
|
return;
|
|
|
}
|
|
|
- const isFollowing = await ctx.service.weappAttention.isFollowingSection(ctx.projectAccount.id, tenderId);
|
|
|
+ const isFollowing = await ctx.service.weappAttention.isFollowingSection(ctx.session.sessionUser.id, tenderId);
|
|
|
ctx.body = { code: 0, msg: '', data: { following: isFollowing } };
|
|
|
} catch (error) {
|
|
|
ctx.body = { code: -1, msg: error.toString(), data: null };
|