Exemplo n.º 1
0
Arquivo: main.py Projeto: SSSTA/wbmsg
 def POST(self, url):
     i = web.input(uid=0, token=0, touid=0, text=0)
     services.post_message(i.uid, i.token,  i.touid, i.text) #TODO 这里post的东西会不会导致 urlencode两次?
     return 'new'    #TODO 修改返回值
Exemplo n.º 2
0
Arquivo: main.py Projeto: SSSTA/wbmsg
    def GET(self, url):
        i = web.input(uid=0, token=0, touid=0, text=0)       #TODO 删掉
        services.post_message(i.uid, i.token,  i.touid, i.text)

        return '/(new|send): pls use POST to send new message.'