dingtalk icon indicating copy to clipboard operation
dingtalk copied to clipboard

恢复 postJson 用法

Open smartymoon opened this issue 5 years ago • 2 comments

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

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

#40 #79

smartymoon avatar Oct 03 '20 01:10 smartymoon

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

mingyoung avatar Oct 03 '20 05:10 mingyoung

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

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

smartymoon avatar Oct 04 '20 07:10 smartymoon