Your Name 3 lat temu
rodzic
commit
988f6d2095
1 zmienionych plików z 11 dodań i 3 usunięć
  1. 11 3
      service/agent/lib/Manage.php

+ 11 - 3
service/agent/lib/Manage.php

@@ -1368,7 +1368,7 @@ class Manage
     }
 
     public function out_touxian($data){
-        $header = array('姓名', '手机号', '身份证', '角色', '头衔', '代理费', '直推姓名', '直推手机号', '直推身份证', '直推角色', '直推头衔', '推荐人姓名', '推荐人手机号', '推荐人身份证', '推荐人角色', '推荐人头衔', '时间','月份');
+        $header = array('姓名', '手机号', '身份证', '角色', '头衔', '代理费', '直推姓名', '直推手机号', '直推身份证', '直推角色', '直推头衔', '推荐人姓名', '推荐人手机号', '推荐人身份证', '推荐人角色', '推荐人头衔', '注册时间', '终审时间', '月份');
         $body = array();
         foreach($data as $k => $v) {
             if ($v['parent_mid'] > 0) {
@@ -1397,8 +1397,15 @@ class Manage
                 if ($order) {
                     $v['agent_cash'] = $order['total'];
                 }
-                $month = date('m月',$v['cdate']);
-                $month = preg_replace('/^0+/', '', $month);
+                $month = '';
+                $udate = '';
+                #终审时间
+                if(isset($v['udate']) && $v['udate']) {
+                    $month = date('m月',$v['udate']);
+                    $month = preg_replace('/^0+/', '', $month);
+                    $udate = date('Y-m-d H:i',$v['udate']);
+                } 
+                #注册时间
                 $v['cdate'] = date('Y-m-d H:i',$v['cdate']);
                 $parent = Dever::db('agent/member')->find($v['parent_mid']);
                 if (!$parent) {
@@ -1507,6 +1514,7 @@ class Manage
                         $group['title_name'],
 
                         $v['cdate'],
+                        $udate,
                         $month,
                     );
                     $body[] = $d;