ifwebcookiefindtoken=then token=token=webcookiematchtoken=-; userId=userId=webcookiematchuserId=-; cookie=userId&token mycookietxtsetTextcookie--设置文本内容
可以将代码中的"token="和"userId="替换为"cookie=",并将变量名也改为cookie即可获取全部的cookie信息。具体修改代码如下:
if(webcookie:find"cookie=")then cookie="cookie="..webcookie:match("cookie=(.-);") mycookietxt.setText(cookie) cookielay.setVisibility(View.VISIBLE) end
原文地址: https://www.cveoy.top/t/topic/bEVc 著作权归作者所有。请勿转载和采集!