platform_cookie_update.py 790 B

123456789101112131415161718192021222324
  1. # Author renyupeng
  2. # coding=utf-8
  3. # @Time : 2024/1/4 上午10:16
  4. # @Site :
  5. # @File : platform_cookie_update.py
  6. # @Software: PyCharm
  7. # @contact: renyupeng@c-top.com.cn
  8. # @Tel 1501435553
  9. from utils.mysql_utils import MysqlUtils
  10. class platform_cookie_update:
  11. @staticmethod
  12. def get_one_cookie_handler():
  13. sql = "select cookie,user_name " \
  14. "from kwai_promoter.platform_supply_chain_cookie where status =0 and level_staus =1"
  15. result = MysqlUtils().QueryAll(sql)
  16. return result
  17. @staticmethod
  18. def get_two_cookie_handler():
  19. sql = "select cookie,user_name from " \
  20. "kwai_promoter.platform_supply_chain_cookie where status =0 and level_staus =2"
  21. result = MysqlUtils().QueryAll(sql)
  22. return result