From d495b36f3c1619f05c08a38119f41ac938ef6a67 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Tue, 12 Sep 2023 15:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=84=AA=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Index.php b/app/controller/Index.php index 9678960..ecd89cf 100644 --- a/app/controller/Index.php +++ b/app/controller/Index.php @@ -71,8 +71,8 @@ class Index extends BaseController $data = $list->toArray()['data']; foreach ($data as &$item) { - $item['user_id'] .= "XX"; $user = UserModel::field('phone')->find($item['user_id']); + $item['user_id'] = substr($item['user_id'],0,2)."XX"; $item['phone'] = format_phone_number($user['phone']); $item['awards_amount'] = number_format($item['awards_amount']); }