字符串转数组
//判断字符串转数组
private function strToArray($ids){
if(!str_contains($ids,","))
return _response([],100,"data error");
$ids = explode(",", $ids);
if(count($ids) == 0)
return _response([],100,"data error");
foreach ($ids as &$v)
$v = $this->decode($v);
return $ids;
}