...
|
...
|
@@ -235,11 +235,15 @@ class App { |
|
|
public function requestArr($name='*',array $default = [], $filter = null){
|
|
|
$value = $this->request($name,$default, $filter);
|
|
|
if(!is_array($value)){
|
|
|
$j = @json_decode($value,true);
|
|
|
if(is_array($j)){
|
|
|
$value = $j;
|
|
|
if($value){
|
|
|
$j = @json_decode($value,true);
|
|
|
if(is_array($j)){
|
|
|
$value = $j;
|
|
|
}else{
|
|
|
$value = explode(',',(string) $value);
|
|
|
}
|
|
|
}else{
|
|
|
$value = explode(',',(string) $value);
|
|
|
$value = [];
|
|
|
}
|
|
|
}
|
|
|
foreach ($value as $k=>$v){
|
...
|
...
|
|