微信公众号应用中的提交按钮在哪里?

Where is the submit button in a WeChat Official Account app?

我正在尝试按照 WeChat Official Account tutorial 构建应用程序。

步骤中

1.4 Basic Configuration for Developers

  1. After the restart is successful (python main.py 80), click the Submit button. If the prompt "token verification failed" appears, check the code or network link. If the token is successfully verified, you will be redirected back to the Basic Configuration page. Click Start.

但是,根据教程,没有提交按钮相关的代码。我找不到提交按钮。

我在应用程序微信中通过微信公众号打开页面时,只显示"hello, this is handle view"。

有指导吗?谢谢

main.py

import web
from handle import Handle

urls = (
    '/wx', 'Handle',
)

if __name__ == '__main__':
    app = web.application(urls, globals())
    app.run()

handle.py

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

I figured out the submit button here in the tutorial is referring the submit button at

https://mp.weixin.qq.com/

开发 -> 基本配置 -> 服务器配置 -> 修改配置 -> URL

After you fill the URL, that submit (提交) button.

(Unfortunately, the WeChat Official Accounts settings panel only has Mandarin language not like the developer doc. But hopefully my screenshot will help locate it.)