Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

聚合短信返回 模板变量不符合规范 #310

Open
Shmily1995 opened this issue Oct 26, 2021 · 2 comments
Open

聚合短信返回 模板变量不符合规范 #310

Shmily1995 opened this issue Oct 26, 2021 · 2 comments

Comments

@Shmily1995
Copy link
Contributor

聚合短信返回 模板变量不符合规范,经测试 怀疑是
image
这里的http_build_query 把 # 号编码了 才错的
例如
$formatted["#code#"]=1122; 编译成 “%23code%23=1122” 后报错, 我直接 拼接成 “#code#=1122” 可以发送

@Shmily1995
Copy link
Contributor Author

使用 urldecode(http_build_query($formatted)) 把# 转回去 可正常发送

@overtrue
Copy link
Owner

欢迎 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants