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']); }