Commit 9c9ce563 by 冷斌

update

parent b7b368c3
......@@ -1384,11 +1384,7 @@ class Api_User extends PhalApi_Api {
$labelIds = $domain->getUserLabel(0,$touid);
$labelId = [];
foreach ($labelIds as $item) {
$labelId = array_merge($labelId, array_map(function($id){
if (!empty($id)) {
return $id;
}
}, preg_split('/,|,/',$item['label'])));
$labelId = array_merge($labelId, array_filter(preg_split('/,|,/',$item['label'])));
}
var_dump($labelId);
die;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment