“点击提交按钮”是指怎么提交?
我在按照这个教程进行公众号开发。
https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html
其中一步“1.4 开发者基本配置”里面
> 4) 重新启动成功后(python main.py 80),点击提交按钮。
代码按照教程如下:
import web
from handle import Handle
urls = (
'/wx', 'Handle',
)
if __name__ == '__main__':
app = web.application(urls, globals())
app.run()
import hashlib
import web
class Handle(object):
def GET(self):
try:
data = web.input()
if len(data) == 0:
return "hello, this is handle view"
signature = data.signature
timestamp = data.timestamp
nonce = data.nonce
echostr = data.echostr
token = "xxxx" #Enter the value in **Basic Configuration ** at Official Accounts Platform.
list = [token, timestamp, nonce]
list.sort()
sha1 = hashlib.sha1()
map(sha1.update, list)
hashcode = sha1.hexdigest()
print "handle/GET func: hashcode, signature: ", hashcode, signature
if hashcode == signature:
return echostr
else:
return ""
except Exception, Argument:
return Argument
通过公众号打开网页只是显示:hello, this is handle view。如下面截图。
请问这里的“选择提交”和“点击提交按钮”是指怎样提交呢?代码里面也没有按钮相关的代码啊。谢谢