.版本 2
.支持库 EThread
.支持库 spec
.子程序 _按钮1_被单击
启动线程 (&Login, , )
.子程序 Login
.局部变量 result, 文本型
.局部变量 pwd, 文本型
.局部变量 nonce, 文本型
.局部变量 timestamp, 文本型
.局部变量 sign, 文本型
.局部变量 deviceUuid, 文本型
nonce = MD52 (文本_取随机数字 (4, ))
timestamp = 时间_取现行时间戳 (真)
deviceUuid = 取文本左边 (MD52 (文本_取随机UUID ()), 16)
pwd = 编码_运行JS代码 (#常量_Tea, “xxtea_encrypt”, 编辑框2.内容, , , )
sign = MD52 (“deviceUuid=” + deviceUuid + “&mobile=” + 编辑框1.内容 + “&nonce=” + nonce + “&password=” + pwd + “&platform=2×tamp=” + timestamp + “&ver=1df35a802c13e63b059bd5103b7329304”)
result = 网页_访问_对象u (“https://rest-bbs.yestae.com/api/PP0104”, 1, “deviceUuid=” + deviceUuid + “&platform=2&password=” + 编码_URL编码 (pwd, 真, 真) + “&sign=” + sign + “&mobile=” + 编辑框1.内容 + “×tamp=” + timestamp + “&ver=1&nonce=” + nonce, , , #常量Header, , , , , , , , , , , )
调试输出 (result)