Browse Source

優化

master
wanghongjun 2 years ago
parent
commit
d495b36f3c
  1. 2
      app/controller/Index.php

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

Loading…
Cancel
Save