推广员名称

master
jbrazz 5 years ago
parent 5deb0c2b05
commit 2a6d9b7571

@ -370,6 +370,9 @@ class PromoteModel extends Model{
{ {
$result = []; $result = [];
$result = $this->field("*")->where("level={$level}")->select(); $result = $this->field("*")->where("level={$level}")->select();
foreach ($result as &$item) {
$item['nickname'] = $item['account'] . ($item['nickname'] ? "({$item['nickname']})" : "");
}
return $result; return $result;
} }
} }
Loading…
Cancel
Save