|
发表于 2023-2-27 22:33:04
|
显示全部楼层
重庆市重庆市
回帖奖励 +3 枚 精币
.版本 2
.子程序 功能_网页访问, 文本型, , 本命令由【精易网页调试助手】生成,请配合精易模块使用。
.局部变量 局_网址, 文本型
.局部变量 局_方式, 整数型
.局部变量 局_提交数据, 文本型
.局部变量 局_提交协yi头, 文本型
.局部变量 局_结果, 字节集
.局部变量 局_返回, 文本型
' http://218.201.11.101:18989/speed/finish?taskId=gk9RYhGu_eJyhFvDABdZ8V7ntmhDFFknd-9l0WdxvZ-6UWzCoP0WaDxzjNgYVM5H4BNRFBFbk8u-J35zDK5eIQ::3966811&port=
局_网址 = "http://218.201.11.101:18989/speed/finish?taskId=gk9RYhGu_eJyhFvDABdZ8V7ntmhDFFknd-9l0WdxvZ-6UWzCoP0WaDxzjNgYVM5H4BNRFBFbk8u-J35zDK5eIQ::3966811&port="
局_方式 = 1
' {"mode":"Down","speed":"53514.240","maxSpeed":"56401.920","userIp":"183.226.168.77","bdAccount":"15523623609","pingDelay":"145.80","pingJitter":"96.00","packetLossRate":0,"isUsePlug":0}
局_提交数据 = "{”+#引号+“mode”+#引号+“:”+#引号+“Down”+#引号+“,”+#引号+“speed”+#引号+“:”+#引号+“53514.240”+#引号+“,”+#引号+“maxSpeed”+#引号+“:”+#引号+“56401.920”+#引号+“,”+#引号+“userIp”+#引号+“:”+#引号+“183.226.168.77”+#引号+“,”+#引号+“bdAccount”+#引号+“:”+#引号+“15523623609”+#引号+“,”+#引号+“pingDelay”+#引号+“:”+#引号+“145.80”+#引号+“,”+#引号+“pingJitter”+#引号+“:”+#引号+“96.00”+#引号+“,”+#引号+“packetLossRate”+#引号+“:0,”+#引号+“isUsePlug”+#引号+“:0}” + #换行符 + “"
局_提交协yi头 = "Host: 218.201.11.101:18989” + #换行符 + “Connection: keep-alive” + #换行符 + “Content-Length: 186” + #换行符 + “Accept: application/json, text/plain, */*” + #换行符 + “User-Agent: Mozilla/5.0 (Linux; U; Android 12; zh-cn; M2102J2SC Build/SKQ1.211006.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 XiaoMi/MiuiBrowser/17.4.240216 swan-mibrowser” + #换行符 + “Content-Type: application/json;charset=UTF-8” + #换行符 + “Origin: http://speed.cq.chinamobile.com” + #换行符 + “Referer: http://speed.cq.chinamobile.com/” + #换行符 + “Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
局_结果 = 网页_访问 (局_网址, 局_方式, 局_提交数据, , , 局_提交协yi头, , , , , )
局_返回 = 到文本(编码_编码转换对象(局_结果))
返回(局_返回) |
|