Exemple #1
0
 def get(self):
     stuid = cgi.escape(self.request.get('stuid'))
     pwd = cgi.escape(self.request.get('pwd'))
     if((not stuid) or (not pwd)):
         self.response.out.write("POST 或 GET 学号和密码到这个页面,页面会返回JSON格式的已修课程数据。")
         self.response.out.write("<p>")
         self.response.out.write("学号name为stuid,密码name为pwd。\
                                 <p>\
                                 如需更多帮助,请按‘0’转人工服务 or 联系 [email protected]。\
                                 ")
     else:
         self.response.headers.add_header("Cache-Control", "must-revalidate")
         self.response.out.write(parseHTML(login.login(stuid, pwd)))
Exemple #2
0
 def post(self):
     stuid = cgi.escape(self.request.get('stuid'))
     pwd = cgi.escape(self.request.get('pwd'))
     self.response.out.write(parseHTML(login.login(stuid, pwd)))