开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1172|回复: 7
收起左侧

[完成] 10

 关闭 [复制链接]
结帖率:82% (9/11)
发表于 2022-7-3 17:04:58 | 显示全部楼层 |阅读模式   内蒙古自治区包头市
60精币
图片返回的base64编码,但是json解析不出来,就比较好奇这种怎么办,附数据包GET https://hzy.haier.com/vipCode/user/getSystemCode HTTP/1.1
Host: hzy.haier.com
Connection: keep-alive
sec-ch-ua: ";Not A Brand";v="99", "Chromium";v="94"
Accept: */*
X-Requested-With: XMLHttpRequest
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 Core/1.94.169.400 QQBrowser/11.0.5130.400
sec-ch-ua-platform: "Windows"
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: SESSION=f1329f42-29d2-4571-a043-0378164ab9e8; HWWAFSESID=00535884b0a4ff5a22; HWWAFSESTIME=1656773841072; gr_user_id=edf03e97-c71d-4bbb-a714-4f63dc3dcec8; 94b69ef12b8bb463_gr_session_id=d7030e7a-2012-47cb-8bf2-bd1ad309b337; 94b69ef12b8bb463_gr_session_id_d7030e7a-2012-47cb-8bf2-bd1ad309b337=true


最佳答案

查看完整内容

把里面的反斜杠替换掉就可以啊
发表于 2022-7-3 17:04:59 | 显示全部楼层   内蒙古自治区包头市
把里面的反斜杠替换掉就可以啊
回复

使用道具 举报

结帖率:100% (6/6)
发表于 2022-7-3 17:10:28 | 显示全部楼层   湖南省张家界市
用编码_base64解码就行了 不用json解析
回复

使用道具 举报

结帖率:82% (9/11)

签到天数: 14 天

 楼主| 发表于 2022-7-3 17:11:32 | 显示全部楼层   内蒙古自治区包头市
Siempre 发表于 2022-7-3 17:10
用编码_base64解码就行了 不用json解析

但是解码出来的取不到图片
回复

使用道具 举报

结帖率:82% (9/11)

签到天数: 14 天

 楼主| 发表于 2022-7-3 17:11:55 | 显示全部楼层   内蒙古自治区包头市
lidong1998 发表于 2022-7-3 17:11
但是解码出来的取不到图片

"data:image\/jpeg;base64,\/9j\/4AAQSkZJRgABAgAAAQABAAD\/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL\/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL\/wAARCAAyAMgDASIAAhEBAxEB\/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL\/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6\/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL\/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMn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wZ4e8UbTrGmRXLpwsnKuB6bhg0AfP8Xxv8RWlrHDay2UaqMCJNOVEX2GH\/pWj4c+KPjXxf4n0\/SfO02MSy5SWWwDqjAEg9cjkDkHrXr9j8LPBVgQ0egWzv8A3pcv+hOK6Wy0fTdPAFnYW0GO8cQB\/OgDJ0Kx8YwaiH1vWNMu7PYR5dtaNG27scljxXUCminCgBwopRRQBwwpwoooAeKcKKKAHinCiigBwp4oooAcKcKKKAHinCiigBwp4oooAcKeKKKAHCnCiigB4pwoooAcKeKKKAHCniiigBwooooA\/9k="



这是返回数据
回复

使用道具 举报

结帖率:91% (50/55)

签到天数: 9 天

发表于 2022-7-3 17:12:13 | 显示全部楼层   福建省厦门市
111.e (928.13 KB, 下载次数: 2)
回复

使用道具 举报

结帖率:100% (6/6)
发表于 2022-7-3 17:14:49 | 显示全部楼层   湖南省张家界市
lidong1998 发表于 2022-7-3 17:11
但是解码出来的取不到图片

替换掉data:image\/jpeg;base64,
替换掉\
替换掉以上两个东西

补充内容 (2022-7-3 17:16):
子文本替换(子文本替换(“data:image\/jpeg;base64,”,“”),"\","")
再解码
回复

使用道具 举报

结帖率:91% (50/55)

签到天数: 9 天

发表于 2022-7-3 17:16:36 | 显示全部楼层   福建省厦门市

111.e (924.6 KB, 下载次数: 1)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表