-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
$this->fields('id' , 'gid' , 'image' , 'number' , 'price' , 'select')->find(3);
这样的时候会报错,修复办法
doitphp -> Model.php -> fields
找到
$fieldName = implode(',', $new);
替换为
$new = [];
foreach ($fieldName as $key => $value) {
array_push($new , '`' . $value . '`' );
}
$fieldName = implode(',', $new);
unset($new);
Metadata
Metadata
Assignees
Labels
No labels