Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

恢复 postJson 用法 #87

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open

恢复 postJson 用法 #87

wants to merge 1 commit into from

Conversation

smartymoon
Copy link

之前被修改后,'msg’ 要加 json_encode,这没有什么意义
'msg'=> json_encode(['msgtype'=> "text", 'text'=>['content'=> '测试 ']])

如果用 postJson,则直接写, 这样更合理
'msg'=>['msgtype'=> "text", 'text'=>['content'=> '测试 ']]

#40 #79

@mingyoung
Copy link
Owner

感谢 PR。不过是不是会对已使用 json_encode 的旧版本造成不兼容的情况?是的话建议在下个大版本修改。

@smartymoon
Copy link
Author

感谢 PR。不过是不是会对已使用 json_encode 的旧版本造成不兼容的情况?是的话建议在下个大版本修改。

确实是,在大版本中恢复是比较保险的做法

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

Successfully merging this pull request may close these issues.

None yet

2 participants