|
@@ -429,7 +429,7 @@ class TaobaoCrawl:
|
|
|
return False
|
|
return False
|
|
|
safe_name = self._sql_literal(self.account_name)
|
|
safe_name = self._sql_literal(self.account_name)
|
|
|
sql_account = (
|
|
sql_account = (
|
|
|
- "select `id`,`nickname`,`ip`,`cookie_timestamp`,`cookie_str` "
|
|
|
|
|
|
|
+ "select `id`,`name`,`ip`,`cookie_timestamp`,`cookie_str` "
|
|
|
f"from `accounts_platform` where `name`='{safe_name}'"
|
|
f"from `accounts_platform` where `name`='{safe_name}'"
|
|
|
)
|
|
)
|
|
|
account_list = self.db.select_data(sql_account)
|
|
account_list = self.db.select_data(sql_account)
|
|
@@ -448,7 +448,7 @@ class TaobaoCrawl:
|
|
|
return True
|
|
return True
|
|
|
|
|
|
|
|
def get_account(self):
|
|
def get_account(self):
|
|
|
- sql_account = f""" select `id`,`nickname`,`ip`,`cookie_timestamp`,`cookie_str` from `accounts_platform` where `platform`=1 and `status`=1 and `equipment_id`=1 order by `cookie_timestamp` asc limit 1 """
|
|
|
|
|
|
|
+ sql_account = f""" select `id`,`name`,`ip`,`cookie_timestamp`,`cookie_str` from `accounts_platform` where `platform`=1 and `status`=1 and `equipment_id`=1 order by `cookie_timestamp` asc limit 1 """
|
|
|
|
|
|
|
|
account_list = self.db.select_data(sql_account)
|
|
account_list = self.db.select_data(sql_account)
|
|
|
if not account_list:
|
|
if not account_list:
|
|
@@ -457,7 +457,7 @@ class TaobaoCrawl:
|
|
|
account_dict = account_list[0]
|
|
account_dict = account_list[0]
|
|
|
self.ip = account_dict.get("ip")
|
|
self.ip = account_dict.get("ip")
|
|
|
cookie_str = account_dict.get("cookie_str")
|
|
cookie_str = account_dict.get("cookie_str")
|
|
|
- self.account_name = account_dict.get("nickname")
|
|
|
|
|
|
|
+ self.account_name = account_dict.get("name")
|
|
|
self.cookie_stamp = account_dict.get("cookie_timestamp")
|
|
self.cookie_stamp = account_dict.get("cookie_timestamp")
|
|
|
|
|
|
|
|
if self.ip:
|
|
if self.ip:
|