code: public function processGroupItem($item)
      {
          switch ($item['config_type']) {
              case 'array':
                  $arr = empty($item['config_extra']) ? [] : explode(',', $item['config_extra']);
                  $value = empty($item['config_value']) ? [] : json_decode($item['config_value'], true);
                  foreach ($arr as $vo) {
                      if (! isset($value[$vo])) {
                          $value[$vo] = '';
                      }
                  }
                  $item['config_value'] = json_encode($value, JSON_UNESCAPED_UNICODE);
                  break;
              case 'radio':
              case 'checkbox':
              case 'select':
                  $arr = empty($item['config_extra']) ? [] : explode('|', $item['config_extra']);
                  $extra = [];
                  foreach ($arr as $vo) {
                      list ($value, $name) = explode(':', $vo);
                      $extra[] = [
                          'name' => $name,
                          'value' => $value
                      ];
                  }
                  $item['config_extra'] = $extra;
                  break;
          }
          return $item;
      }
docs: 处理分组
  
  @param array $item
  @return array