Browse Source

会员列表隐藏手机号

shensong 5 years ago
parent
commit
04cd67db25
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/Admin/CustomerDepositController.php

+ 1 - 0
app/Http/Controllers/Admin/CustomerDepositController.php

@@ -411,6 +411,7 @@ class CustomerDepositController extends Controller
411 411
             $item['coupon'] = '剩余'.$coupons.'张';
412 412
             $admin = Admin::find($value['admin_id']);
413 413
             $item['admin_name'] = $admin->realname;
414
+            $item['phone'] = is_numeric($item['phone']) ? substr_replace($item['phone'], '****', 3, 4) : $item['phone'];
414 415
             return $item;
415 416
         },$result);
416 417