Your Name 2 years ago
parent
commit
aef4a33c6c
1 changed files with 6 additions and 1 deletions
  1. 6 1
      service/agent/lib/Dhorder.php

+ 6 - 1
service/agent/lib/Dhorder.php

@@ -1253,10 +1253,14 @@ class Dhorder
     }
     #权益管理导出
     public function out_member_goods_api($data){
-        $header = array('权益名称', '会员等级', '姓名', '手机号', '卡号','剩余数量', '总数量', '单件价值', '未兑换价值', '已用面值','5月已用面值','备注','获取方式', '获取时间');
+        $header = array('权益名称', '会员等级', '姓名', '手机号', '卡号','剩余数量', '总数量', '单件价值', '未兑换价值', '已用面值','5月已用面值','备注','获取方式', '获取时间','代理商注册时间');
         $body = array();
         foreach($data as $k => $v){
             $member = Dever::db('agent/member')->find(array('id'=>$v['mid']));
+            $member_cdate = '-';
+            if($member && $member['cdate']){
+                $member_cdate = date('Y-m-d H:i',$member['cdate']);
+            }
             $role = Dever::db('setting/role')->find(array('id'=>$member['role']));
             $wd = ($v['total_num'] - $v['sell_num'])*$v['price'];
             $card = '-';
@@ -1297,6 +1301,7 @@ class Dhorder
                 $desc,
                 '',
                 date('Y-m-d H:i',$v['cdate']),
+                $member_cdate,
                 
             );
             $body[] = $d;