Sfoglia il codice sorgente

Merge fix/bug-6164-6163-6162

ethanfly 2 giorni fa
parent
commit
149791c84b

+ 6 - 1
server/python/platforms/weixin.py

@@ -556,6 +556,11 @@ class WeixinPublisher(BasePublisher):
         await self.page.locator("div.input-editor").click()
         await self.page.keyboard.type(params.title)
 
+        # 添加描述(换行后在标题下方)
+        if params.description:
+            await self.page.keyboard.press("Enter")
+            await self.page.keyboard.type(params.description)
+
         if params.tags:
             await self.page.keyboard.press("Enter")
             for tag in params.tags:
@@ -1653,7 +1658,7 @@ class WeixinPublisher(BasePublisher):
         page: 页码从 0 开始,或上一页返回的 rawKeyBuff/lastBuff 字符串
         """
         # 分页:首页 currentPage=1/rawKeyBuff=null,下一页用 currentPage 递增或 rawKeyBuff
-        if page is None or page == "" or (isinstance(page, int) and page == 0):
+        if page is None or page == "" or page == "0" or (isinstance(page, int) and page == 0):
             current_page = 1
             raw_key_buff = None
         elif isinstance(page, int):

+ 2 - 2
server/src/services/WorkDayStatisticsService.ts

@@ -589,7 +589,7 @@ export class WorkDayStatisticsService {
         likesCount: stat?.likesCount ?? 0,
         commentsCount: stat?.commentsCount ?? 0,
         collectsCount: stat?.collectsCount ?? 0,
-        updateTime: latestUpdate ? latestUpdate.toISOString() : undefined,
+        updateTime: latestUpdate ? this.formatUpdateTime(latestUpdate) : undefined,
       };
     });
 
@@ -883,7 +883,7 @@ export class WorkDayStatisticsService {
       const accountYesterdayLikes = yesterdayUds?.likeCount ?? 0;
       const accountYesterdayFansIncrease = yesterdayUds?.fansIncrease ?? 0;
 
-      const updateTime = (yesterdayUds?.updatedAt ?? account.updatedAt).toISOString();
+      const updateTime = this.formatUpdateTime(yesterdayUds?.updatedAt ?? account.updatedAt ?? new Date());
 
       accountList.push({
         id: account.id,