{layout name="manager/layout" /} {php} $whereMap[] = ['id', 'in', $item['notice_list'] ?? []]; $targetList = \app\repository\AccountRepository::getInstance()->findList($whereMap)['list']->toArray(); foreach ($targetList as &$val) { $val['account_desc2'] = $val['nickname'].'【姓名:'.$val['real_name'].'】'; $val['selected'] = true; } $targetListJson = json_encode($targetList, JSON_UNESCAPED_UNICODE); {/php}