1. 重新初始化

2. 调整为手动更新
3. 添加指定服务端口的环境变量
4. 修复获取个人数据返回值错误的bug
This commit is contained in:
ngfchl
2022-08-24 18:44:59 +08:00
parent d8b636f5da
commit 1c8df96c42
2 changed files with 5 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
import logging
import re
import threading
import time
from datetime import datetime
import aip
import cloudscraper
import opencc
import time
from django.db import transaction
from django.db.models import QuerySet
from lxml import etree
@@ -648,7 +648,7 @@ class PtSpider:
# print(torrent_info)
if count + new_count <= 0:
return CommonResponse.error(msg='抓取失败或无促销种子!')
return CommonResponse.success((new_count, count))
return CommonResponse.success(data=(new_count, count))
except Exception as e:
# raise
return CommonResponse.error(msg='解析种子页面失败!' + str(e))