易语言获取验证码实例讲解
我们先来看下获取连接的内容
{"captcha_hash":"84c73e55e09ea98803879725b4703b4b-5c06213d","captcha_image":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAYAEADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1TxDqNxbeRZ2vyz3J2rJnG2ptD067sIZWvLozyytuYk55xj+QH5Vla/p8msa9BaJL5XlxF91W/C0lwIrq2uZjLJDJtyTk4rT7Jq17mhk+IPE93FffZrLdCYztcsOp7VP4Pnuhe3ttcTNJg7uTkbick/jWf4iDR6rfwtGuZlWRGJ7Cn+HHuoNRVoooj9ohyFLY6VbXumjS5NCTULNL3xvHbzs0kZXoxzjqcfTNWtLs4tL8WXcduh2CDIUdTWTqWozWvik3FzAEZV2kB+nvmtDw9PfahqdzqMcKN8ojG9scUNOwNPl8rGprWrXCz21jYHZczjIZv4R7ipLFNUtFeTVL1DGpB3AcAd8+g96iEXm+L1M8alhbAgdQDmugZlUDcQASBz69qh6aGbaSSRg6za30OowanYxmVkUq8Y6sKb4WWSUX13LG8ckkxUqwxjHaiilfQm/u2KOsQi68XQRAbg0LRn/e25I+uCD9CK1dJ0NbRLaaYnz4kKgA8YooqpdCptpJeRlGzS+8a3UUgUhIwxVhkEcdfz/lXT2dlb2EHk20YRM5wKKKUhTeyMbVrLUoNUXUdNHmuV2NG3QCrWnS396skWqWSIu3BB5Vs0UUr6C5tLH/2Q=="}
显示验证码
网址1 = “https://h5.ele.me/restapi/eus/v3/captchas” 返回1 = 到文本 (网页_访问_对象 (网址1, 1)) 调试输出 (返回1) 验证码1 = 文本_取出中间文本 (返回1, “jpeg;base64,”, #引号) 调试输出 (验证码1) 图片框1.图片 = 编码_BASE64解码 (验证码1)
点击更换验证码
实验现象
赞 (0)