|
@@ -429,6 +429,7 @@ class FwhGroupPublishMonitor(FwhDataRecycle):
|
|
|
fetch_response = self.piaoquan_client.fetch(
|
|
|
fetch_query, cursor_type=DictCursor, params=(gh_id, date_string)
|
|
|
)
|
|
|
+ print(fetch_response[0])
|
|
|
return fetch_response[0] if fetch_response else None
|
|
|
|
|
|
def deal(self, date_string: str = datetime.today().strftime("%Y-%m-%d")):
|
|
@@ -483,12 +484,13 @@ class FwhGroupPublishMonitor(FwhDataRecycle):
|
|
|
# # 获取剩余可发文次数
|
|
|
# remain_publish_times = self.get_remain_publish_times(gh_id)
|
|
|
|
|
|
- remain_fans, remain_publish_times = self.get_remain_fans_and_publish_times(
|
|
|
+ detail = self.get_remain_fans_and_publish_times(
|
|
|
gh_id, date_string
|
|
|
)
|
|
|
+ remain_fans, remain_publish_times = detail['fans_before_publish'], detail['publish_times_before_publish']
|
|
|
temp = {
|
|
|
"account_name": account_name,
|
|
|
- "rest_publish_times": int(remain_publish_times + sent_fans),
|
|
|
+ "rest_publish_times": int(int(remain_publish_times) + sent_fans),
|
|
|
"rest_publish_fans": int(remain_fans),
|
|
|
"remain_days": int(remain_days),
|
|
|
"sent_fans": int(sent_fans),
|