ApiHandler.py 332 B

123456789101112
  1. from handlers.HandlerBase import BaseHandler
  2. from model.DataBaseUtils import MysqlUtils
  3. class ApiHandler(BaseHandler,MysqlUtils):
  4. def post(self):
  5. print(self.get_args())
  6. path=self.get_args()["path"]
  7. print(path)
  8. self.quchen_text.execute(f"replace into yangguang_path (path) values ('{path}')")