We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当数据库中json存储内容包含空对象时,转义时会被强制转换成数据,与预期不符.
//存储数据 {"A":{},"B":[]} //得到结果 {#327 +"A": [] +"B": [] } //预期得到 {#327 +"A": {#329} +"B": [] }
问题发上在ModelRelationQuery.php
$jsonData = json_decode($result[$name], true);
同理framework的入参处理也存在该问题.当入参为空对象时也成为了空数据,需要手动处理得到如期结果.
json_decode(file_get_contents('php://input'))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
当数据库中json存储内容包含空对象时,转义时会被强制转换成数据,与预期不符.
问题发上在ModelRelationQuery.php
同理framework的入参处理也存在该问题.当入参为空对象时也成为了空数据,需要手动处理得到如期结果.
The text was updated successfully, but these errors were encountered: