wesmiler 2 tháng trước cách đây
mục cha
commit
82948dba35
2 tập tin đã thay đổi với 17 bổ sung1 xóa
  1. 16 0
      app/Helpers/common.php
  2. 1 1
      app/Services/Api/BalanceLogService.php

+ 16 - 0
app/Helpers/common.php

@@ -697,6 +697,22 @@ if (!function_exists('format_mobile')) {
     }
 }
 
+
+if (!function_exists('format_name')) {
+
+    /**
+     * 格式化姓名
+     * @param string $name 姓名
+     * @return string 返回结果
+     * @author laravel开发员
+     * @date 2019/5/23
+     */
+    function format_name($name)
+    {
+        return substr($name, 0, 1) . "*" . substr($name, -1, 1);
+    }
+}
+
 if (!function_exists('get_random_code')) {
 
     /**

+ 1 - 1
app/Services/Api/BalanceLogService.php

@@ -254,7 +254,7 @@ class BalanceLogService extends BaseService
             'after_money' => moneyFormat(max(0,$balance-$money), 2),
             'date'=> date('Y-m-d'),
             'create_time' => time(),
-            'remark' => "余额转出-{$accountName}",
+            'remark' => "余额转出-{$accountName}".'('.substr($account,-4,4).') '.format_name($realname),
             'remark1' => "{$account}".($accountRemark?'/'.$accountRemark:''),
             'status' => 1,
             'mark' => 1,