mirror of https://gitee.com/karson/fastadmin.git
parent
3b02c0fbeb
commit
dd32740c66
|
|
@ -552,7 +552,7 @@ class Backend extends Controller
|
|||
$primaryvalue = array_unique(is_array($primaryvalue) ? $primaryvalue : explode(',', $primaryvalue));
|
||||
//修复自定义data-primary-key为字符串内容时,给排序字段添加上引号
|
||||
$primaryvalue = array_map(function ($value) {
|
||||
return '\'' . $value . '\'';
|
||||
return \think\Db::quote($value);
|
||||
}, $primaryvalue);
|
||||
|
||||
$primaryvalue = implode(',', $primaryvalue);
|
||||
|
|
|
|||
Loading…
Reference in New Issue