解决列表定义中linux下无法使用格式化函数的bug
This commit is contained in:
@@ -123,7 +123,7 @@ class Model extends \think\Model{
|
||||
$list[$field] = ['field' => $field, 'title' => $title];
|
||||
if (strrpos($title, "|")) {
|
||||
$title = explode("|", $title);
|
||||
$list[$field] = ['field' => $field, 'title' => $title[0], 'format' => $title[1]];
|
||||
$list[$field] = ['field' => $field, 'title' => $title[0], 'format' => trim($title[1])];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user