Commit 47e0c4e3 by 冷斌

update

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