let { captchaBase64 } = await uniIdCo.refreshCaptcha({ scene: 'send-sms-code' });
console.log('captchaBase64',captchaBase64)
captchaBase64的值如下 ,好像是被encode了 可是又无法decode,显示 URI malformed 。什么情况?最新版本的uniapp ,插件也都是刚下载的
data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='50' viewBox='0,0,150,50'%3E%3Crect width='100%' height='100%' fill='%23FFFAE8'/%3E%3Cpath fill='%23db4242' d='M38.44 39.04L37.56 37.88L37.49 37.81L37.50 37.82Q37.15 38.07 36.78 38.26L36.78 38.26Q36.49 38.41 36.18 38.53L36.18 38.53L36.31 38.67L36.28 38.63L36.23 38.58L34.65 38.80L34.69 38.84L32.28 38.11L32.36 38.19L30.97 36.76L30.99 36.78L35.68 34.17L35.55 34.03L37.25 29.02L37.34 29.10L37.43 29.20Q37.38 27.32 36.74 25.82L36.74 25.82Q36.19 24.56 35.23 23.56L35.23 23.56L35.22 23.55L35.14 23.47L35.21 23.54L29.65 21.34L29.51 21.20Q27.98 21.26 26.71 21.72L26.71 21.72Q25.12 22.30 23.94 23.52L23.94 23.52L24.00 23.58L23.97 23.55L21.93 29.17L21.94 29.17L21.90 29.13L23.99 34.58L23.94 34.53L23.90 34.50L29.20 36.79L29.20 36.79Q29.63 37.63 30.19 38.26L30.19 38.26Q30.80 38.95 31.57 39.40L31.57 39.40L31.52 39.34L31.47 39.30L31.57 39.39L34.60 40.27L34.58 40.25Q35.15 40.24 35.66 40.14L35.66 40.14Q36.13 40.06 36.54 39.91L36.54 39.91L36.68 40.05L36.61 39.98L38.50 39.09ZM29.79 35.19L29.89 35.29L29.76 35.16L29.77 35.17L25.10 33.35L25.23 33.48L23.64 29.12L23.69 29.17L25.26 24.80L25.20 24.74Q26.01 23.69 27.27 23.22L27.27 23.22Q28.23 22.85 29.45 22.82L29.45 22.82L29.60 22.97L29.62 22.99L29.62 22.99L34.09 24.80L33.92 24.63Q34.77 25.56 35.17 26.76L35.17 26.76Q35.52 27.79 35.54 29.02L35.54 29.02L35.59 29.08L35.63 29.11L35.60 29.09Q35.63 30.20 35.39 31.15L35.39 31.15Q35.04 32.53 34.12 33.54L34.12 33.54L34.09 33.51L34.06 33.48L33.95 33.37Q33.27 34.30 32.29 34.80L32.29 34.80Q31.28 35.31 29.95 35.35L29.95 35.35L29.70 35.10'/%3E%3Cpath fill='%23db4242' d='M64.55 25.46L64.57 25.48L64.58 25.50Q64.47 24.70 64.09 23.98L64.09 23.98Q63.72 23.27 63.08 22.63L63.08 22.63L63.12 22.67L63.10 22.65L62.99 22.54L59.10 21.23L59.16 21.29Q58.04 21.27 57.11 21.55L57.11 21.55Q56.19 21.82 55.45 22.38L55.45 22.38L55.48 22.41L55.51 22.45L53.85 25.62L55.52 25.54L55.67 25.69L56.68 23.58L56.79 23.68L59.28 23.01L59.23 22.95L61.82 23.75L61.86 23.80L62.60 25.79L62.54 25.72L62.64 25.82Q62.38 27.22 61.11 28.48L61.11 28.48Q60.07 29.50 58.38 30.43L58.38 30.43L58.39 30.44L58.31 30.36Q56.63 31.37 55.61 32.61L55.61 32.61Q54.41 34.06 54.11 35.81L54.11 35.81L54.16 35.86L54.19 36.36L54.04 36.67L64.34 36.74L64.41 35.17L60.21 35.08L56.18 35.15L56.09 35.05Q56.47 34.19 57.43 33.28L57.43 33.28Q58.56 32.23 60.47 31.11L60.47 31.11L60.37 31.02L60.39 31.04L64.62 25.54'/%3E%3Cpath d='M14 41 C68 18,66 26,141 2' stroke='%2352da74' fill='none'/%3E%3Cpath d='M19 8 C87 41,66 14,130 25' stroke='%23ea7b57' fill='none'/%3E%3Cpath fill='%23db4242' d='M88.51 24.77L88.53 24.78L88.46 24.72Q87.03 24.96 85.94 25.57L85.94 25.57Q85.02 26.08 84.34 26.85L84.34 26.85L84.18 26.69L84.25 26.76L82.65 30.86L82.76 30.97L82.81 31.02Q82.83 32.38 83.25 33.47L83.25 33.47Q83.64 34.47 84.34 35.25L84.34 35.25L84.26 35.16L84.20 35.11L84.31 35.22Q84.95 35.95 85.84 36.34L85.84 36.34Q86.88 36.80 88.26 36.83L88.26 36.83L88.30 36.86L88.28 36.84L88.32 36.88L90.81 36.41L90.78 36.37L90.74 36.34Q91.18 36.11 91.54 35.80L91.54 35.80Q92.04 35.39 92.40 34.83L92.40 34.83L92.35 34.78L92.32 36.63L93.24 36.69L94.09 36.68L94.15 25.21L93.22 25.14L92.36 25.14L92.42 27.07L92.30 26.96L92.36 27.02L90.77 25.54L90.68 25.45L90.71 25.48L88.51 24.77ZM88.77 35.38L88.77 35.38L88.66 35.27L85.59 34.11L85.60 34.12Q84.99 33.40 84.71 32.55L84.71 32.55Q84.44 31.77 84.44 30.89L84.44 30.89L84.39 30.84L84.54 30.99L84.55 31.01L85.49 27.84L85.53 27.88L85.45 27.80Q85.99 27.22 86.70 26.90L86.70 26.90Q87.48 26.55 88.46 26.51L88.46 26.51L88.54 26.60L88.54 26.59L91.43 27.84L91.50 27.91Q92.03 28.56 92.26 29.41L92.26 29.41Q92.43 30.07 92.43 30.84L92.43 30.84L92.55 30.96L92.51 30.92L92.50 30.91Q92.47 31.75 92.21 32.49L92.21 32.49Q91.92 33.29 91.37 33.96L91.37 33.96L91.48 34.07L91.49 34.08L91.48 34.06L88.70 35.31'/%3E%3Cpath d='M13 9 C90 32,88 47,134 22' stroke='%23d75555' fill='none'/%3E%3Cpath fill='%23db4242' d='M119.12 24.75L119.09 24.72L119.05 24.68Q118.35 24.86 117.75 25.08L117.75 25.08Q117.07 25.33 116.53 25.63L116.53 25.63L116.38 25.48L116.46 25.56L116.52 25.62Q115.91 25.88 115.44 26.30L115.44 26.30Q115.06 26.63 114.76 27.07L114.76 27.07L114.70 27.00L114.84 20.66L113.03 20.53L113.13 36.76L113.91 36.71L114.68 36.64L114.65 35.67L114.75 34.83L114.81 34.89Q115.19 35.42 115.64 35.83L115.64 35.83Q116.06 36.21 116.56 36.48L116.56 36.48L116.51 36.43L116.47 36.39L118.96 36.89L118.97 36.90Q120.09 36.88 121.01 36.55L121.01 36.55Q122.18 36.12 123.04 35.18L123.04 35.18L122.93 35.08L122.99 35.13L124.39 30.88L124.50 30.99Q124.47 29.60 124.03 28.46L124.03 28.46Q123.67 27.54 123.04 26.78L123.04 26.78L122.91 26.66L123.04 26.79L119.07 24.69ZM118.76 35.25L118.93 35.41L118.91 35.40L115.64 34.00L115.70 34.06L115.79 34.15L114.61 30.85L114.65 30.90Q114.73 30.15 114.98 29.48L114.98 29.48Q115.28 28.70 115.83 28.02L115.83 28.02L115.69 27.88L115.79 27.98L115.71 27.89Q116.29 27.17 117.18 26.83L117.18 26.83Q117.84 26.59 118.67 26.55L118.67 26.55L118.63 26.52L118.69 26.58Q119.69 26.58 120.46 26.93L120.46 26.93Q121.12 27.24 121.62 27.83L121.62 27.83L121.67 27.88L121.67 27.88L122.76 30.96L122.81 31.01Q122.76 31.77 122.52 32.44L122.52 32.44Q122.23 33.30 121.64 34.02L121.64 34.02L121.68 34.06L121.62 34.01L118.90 35.38'/%3E%3Cpath d='M15 47 C83 20,57 8,140 48' stroke='%2374ea4c' fill='none'/%3E%3C/svg%3E
DCloud_UNI_LXH
你是在什么平台使用?nvue 吗?
2023-02-15 10:51
某科学的开发者 (作者)
回复 DCloud_UNI_LXH: vue3 setup windows10 hbx版本: 3.6.18.20230117
2023-02-15 10:58
某科学的开发者 (作者)
普通 vue
2023-02-15 10:58
某科学的开发者 (作者)
另外试了下 组件版本的 uni-captcha 是正常的……
2023-02-15 11:00
DCloud_UNI_LXH
回复 某科学的开发者: 运行到哪个平台?
2023-02-15 11:07
某科学的开发者 (作者)
回复 DCloud_UNI_LXH: 小程序
2023-02-15 11:16
DCloud_UNI_LXH
回复 某科学的开发者: 你拿到 base64 后怎么去展示的?
2023-02-15 11:17
某科学的开发者 (作者)
回复 DCloud_UNI_LXH: image src 直接展示 和 view 用background 都无法显示。。。那个3个字符被转码了 不可能显示的出来的……
2023-02-15 11:36
某科学的开发者 (作者)
回复 DCloud_UNI_LXH: 上面贴的就是生成的 图片 完整版本 你可以试试看怎么能显示出来
2023-02-15 11:39
DCloud_UNI_LXH
回复 某科学的开发者: 就是用 image 组件展示。如果是其他的你可以按照这个规则来逆处理一下:
replace(/#/g, '%23')
replace(/"/g, '\'').replace(/</g, '%3C').replace(/>/g, '%3E')
2023-02-15 11:44
1***@qq.com
我也在这倒下了,直接放src显示不出来
2023-03-14 00:15