* Fix GET builds and projects of API.

This commit is contained in:
zhujinyong
2021-09-10 10:14:22 +08:00
parent 15c3de1171
commit 798c0b202c
8 changed files with 33 additions and 13 deletions
+10
View File
@@ -534,6 +534,16 @@ class baseEntry
return $value;
case 'bool':
return boolval($value) ? true : false;
case 'idList':
$values = explode(',', $value);
if(empty($values)) return array();
$idList = array();
foreach($values as $val)
{
if($val !== '') $idList[] = (int) $val;
}
return $idList;
default:
return $value;
}