Closed fcwys closed 4 months ago
通用设置 开 调试模式,导出日志贴上来看看
日志给出了,谢谢了
你的情况属于 2.2 webParams
非空,包含 [msg]
标签、不以 {
开头的 from=[from]&content=[content]
形式提供表单节点 (参见wiki)
webParams
要求的是 key1=value1&key2=value2
形式
程序处理机制:
先按 &
分割,再按 =
分割,但是你的 value
包含了 =
,导致切割第二个键值对的时候出错了(具体看代码 WebhookUtils.kt 163行)
解决方案:
要么,换成 json
形式 post 到 webhook
要么,style=
转义一下 style\u003d
好的,谢谢
经过尝试style= 转义style\u003d不行,接口不支持json格式
我的意思是你的 value2
需要自行 URLEncoder.encode(content, "UTF-8")
我顶多优化一下webParam
分割键值对方式,剩下就看你的webhook
能不能支持了
PS. 本次提交未经测试,仅在脑中跑了一边就提交了,请帮忙测试仔细点
覆盖安装 每周构建版
试试 (等待在线编译完成)
升级操作提示:
加入SmsF预览体验计划
后在线更新(关于软件
页面开启,v3.3.0_240305+
适用)我试试
试了下还是不行,算了不加样式了,也是麻烦你了,感谢
试了下还是不行,算了不加样式了,也是麻烦你了,感谢
再贴一下你的日志看看
刚刚测试了下最新构建版本,不用转码=可以使用了,都正常了,模板内容不需要转码按正常填写就行,非常感谢!
是否有人曾提过类似的问题
否(No)
升级到最新的版本是否存在这个问题
否(No)
是否已经查阅Wiki文档还未能解决的
否(No)
APP版本
v3.3.1.240418
问题描述
使用 爱语飞飞 POST提交内容带style样式后续内容会被扔掉,例如
text=告警通知&desp=<pre style="white-space:break-spaces">[msg]</pre>
则&desp后面内容丢失,使用Postman使用相同参数请求正常。复现步骤
模板使用
text=告警通知&desp=<pre style="white-space:break-spaces">[msg]</pre>
是否必现
是(Yes)
出现问题的手机信息
Redmi K40S
出现问题的安卓版本、系统版本
Android14
提供截图或视频
提供报错堆栈【请提供logcat抓取的日志,参考: https://blog.csdn.net/m0_64776928/article/details/126005119 】
提供解决方案
No response