Skip to content

Commit

Permalink
fix: 解决推送消息错误的url路径
Browse files Browse the repository at this point in the history
  • Loading branch information
Linvery authored Aug 13, 2024
1 parent 3d459a4 commit e2c9742
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/chain/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ def add(self, title: str, year: str,
text = f"评分:{mediainfo.vote_average}"
# 群发
if mediainfo.type == MediaType.TV:
link = settings.MP_DOMAIN('#/subscribe-tv?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/tv?tab=mysub')
else:
link = settings.MP_DOMAIN('#/subscribe-movie?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/movie?tab=mysub')
self.post_message(Notification(mtype=NotificationType.Subscribe,
title=f"{mediainfo.title_year} {metainfo.season} 已添加订阅",
text=text,
Expand Down Expand Up @@ -922,9 +922,9 @@ def __finish_subscribe(self, subscribe: Subscribe, mediainfo: MediaInfo,
self.subscribeoper.delete(subscribe.id)
# 发送通知
if mediainfo.type == MediaType.TV:
link = settings.MP_DOMAIN('#/subscribe-tv?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/tv?tab=mysub')
else:
link = settings.MP_DOMAIN('#/subscribe-movie?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/movie?tab=mysub')
self.post_message(Notification(mtype=NotificationType.Subscribe,
title=f'{mediainfo.title_year} {meta.season} 已完成{msgstr}',
image=mediainfo.get_message_image(),
Expand Down

0 comments on commit e2c9742

Please sign in to comment.