ApiHandler.py 473 B

12345678910111213141516
  1. from handlers.HandlerBase import BaseHandler
  2. from model.DataBaseUtils import MysqlUtils
  3. import json
  4. import requests
  5. class YgApiHandler(BaseHandler,MysqlUtils):
  6. def post(self):
  7. print(self.get_args())
  8. path=self.get_args()["path"]
  9. task_id=self.get_args()["taskId"]
  10. print(path)
  11. self.quchen_text.execute(f"update yangguang_path set path='{path}' where task_id='{task_id}'")
  12. self.write(json.dumps({"code":200,"msg":"ok"}))