top-think / top-think/think-orm
模型 vuale 如果字段是json返回来的默认值是json,不是数组,不清楚是不是有问题
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
config_lis字段为json
$model= MerchantSettleRate::where('is_default', '=', 20)->where('agent_id', '=', 0)->field('config_list')->find()
$config_lis=$model['config_list‘] 返回是数组
$model= MerchantSettleRate::where('is_default', '=', 20)->where('agent_id', '=', 0)->value('config_list')
$config_lis=$model 返回是json (model操作这里是不是应该返回数组??)
topthink/think-orm 最新版本
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ORM query paths for field() and value(), using the config_list JSON column and the two queries shown in the issue. Reproduce both calls and determine whether value() is expected to decode the JSON like field(); done means the return behavior is clarified and covered by an appropriate regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100