Commit 47e0c4e3 by 冷斌

update

parent c256134f
......@@ -1388,13 +1388,17 @@ class Api_User extends PhalApi_Api {
}
$ids = array_count_values($labelId);
arsort($ids);
$labelIds = [];
for ($i=0; $i <= 2; $i++ ) {
var_dump($i);
if (is_array($ids)) {
$labelIds[] = array_shift($ids);
} else {
$labelIds[] = 0;
}
}
var_dump($labelIds);
die;
} else {
$labelIds = $domain->getUserLabel($uid,$touid);
$labelIds=preg_split('/,|,/',$labelIds['label']);
......
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