|
@@ -1253,7 +1253,7 @@ 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']));
|
|
@@ -1276,6 +1276,11 @@ class Dhorder
|
|
|
$card = $code['card']."\t";
|
|
|
$mianzhi = $code['total_cash'] - $code['use_cash'];
|
|
|
}
|
|
|
+ $desc = '';
|
|
|
+ $member_goods_log = Dever::db('agent/member_goods_log')->getOne(array('type'=>$v['type'],'type_id'=>$v['type_id'],'sku_id'=>$v['sku_id'],'state'=>1));
|
|
|
+ if($member_goods_log && $member_goods_log['desc']){
|
|
|
+ $desc = $member_goods_log['desc'];
|
|
|
+ }
|
|
|
$d = array
|
|
|
(
|
|
|
$v['name'],
|
|
@@ -1289,6 +1294,7 @@ class Dhorder
|
|
|
$wd,
|
|
|
$mianzhi,
|
|
|
$money,
|
|
|
+ $desc,
|
|
|
'',
|
|
|
date('Y-m-d H:i',$v['cdate']),
|
|
|
|