mingyoung / dingtalk

[已停止维护]
MIT License
562 stars 115 forks source link

恢复 postJson 用法 #87

Open smartymoon opened 3 years ago

smartymoon commented 3 years ago

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

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

40 #79

mingyoung commented 3 years ago

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

smartymoon commented 3 years ago

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

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