fix: 修复tags标签,getTableFieldsBUG

This commit is contained in:
Ying
2022-08-28 22:24:52 +08:00
parent 3ef9177ea2
commit c1fd30dc98
10 changed files with 87 additions and 128 deletions

View File

@@ -39,13 +39,10 @@ class Dictionary extends Model
* @throws DbException
* @throws ModelNotFoundException
*/
public static function getValueList(string $value = ''): array
public static function getValueList(string $value = '')
{
$list = [];
$data = self::where([
'pid' => 0,
'value' => $value
])->find();
$data = self::where(['pid' => 0,'value' => $value])->find();
if (!empty($data)) {
$list = self::where('pid', $data['id'])->select();
}