如图,使用精易的代码,返回正常,使用按键手机版POST,返回空,大佬帮我看下dataStr,返回正确,得到了正确的BASE64
Import "zm.luae" //导入插件,只需执行一次
zm.Init
Dim lujing="/sdcard/Pictures/1.txt"
zm.EncodeBase64File("/sdcard/Pictures/huakuai_small/3.png",lujing)'参数是路径
Dim imgBase64=zm.FileRead(lujing, "UTF-8")
Dim data={"imgbase64":imgBase64,"typeid":"33"}
TracePrint zm.VarInfo(data)
Dim dataStr=Encode.TableToJson(data)
TracePrint zm.VarInfo(dataStr)
Dim hd={"Accept": "application/json, text/javascript, */*; q=0.01","Content-Type": "application/json; charset=UTF-8","User-Agent": "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/8.9 Mobile Safari/537.36"}
Dim tb={"url":"admin.ttshitu.com/api/Distinguish/user","data":dataStr,"header":hd,"cookie":"SESSION=8f7645bb-411f-41f1-8cd9-305c255231a7"}
Dim postP= zm.HttpPost(tb)
TracePrint len(postP)