1、增加字段类型

2、修复增加字段时的一处bug
This commit is contained in:
2020-04-16 08:32:25 +08:00
parent d269216bca
commit 1592858714
10 changed files with 505 additions and 13 deletions

View File

@@ -133,7 +133,7 @@ class Model extends \think\Model{
public function getAttrGroupAttr($value, $data){
$list = [];
if ($data['attribute_group']) {
$row = explode(PHP_EOL, $data['attribute_group']);
$row = explode(";", $data['attribute_group']);
foreach ($row as $r) {
list($key, $label) = explode(":", $r);
$list[$key] = ['key' => $key, 'label' => $label];