From 2a6d9b75719c9d044a86cf5ec6452a57a483a771 Mon Sep 17 00:00:00 2001 From: jbrazz <2436953959@qq.com> Date: Sat, 9 Nov 2019 15:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=91=98=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Model/PromoteModel.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Application/Admin/Model/PromoteModel.class.php b/Application/Admin/Model/PromoteModel.class.php index 06b86a48f..a3f7e8664 100644 --- a/Application/Admin/Model/PromoteModel.class.php +++ b/Application/Admin/Model/PromoteModel.class.php @@ -370,6 +370,9 @@ class PromoteModel extends Model{ { $result = []; $result = $this->field("*")->where("level={$level}")->select(); + foreach ($result as &$item) { + $item['nickname'] = $item['account'] . ($item['nickname'] ? "({$item['nickname']})" : ""); + } return $result; } } \ No newline at end of file