|
@@ -171,6 +171,13 @@ class LinkController extends Controller
|
|
$params['qapp_account'] = $this->qapp_account;
|
|
$params['qapp_account'] = $this->qapp_account;
|
|
|
|
|
|
$result = $this->service->findUserReportInfos($this->channel_id, $params);
|
|
$result = $this->service->findUserReportInfos($this->channel_id, $params);
|
|
|
|
+
|
|
|
|
+ foreach ($result as $key => &$value) {
|
|
|
|
+ if ($value && !empty($params['nickname'])) {
|
|
|
|
+ $value->nickname = $params['nickname'];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
return response()->pagination(new ReportOrderTramsformer, $result);
|
|
return response()->pagination(new ReportOrderTramsformer, $result);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -181,24 +188,43 @@ class LinkController extends Controller
|
|
|
|
|
|
$result = $this->service->findUserReportInfos($this->channel_id, $params, false);
|
|
$result = $this->service->findUserReportInfos($this->channel_id, $params, false);
|
|
$result = collectionTransform(new ReportOrderTramsformer, $result);
|
|
$result = collectionTransform(new ReportOrderTramsformer, $result);
|
|
|
|
+ $data = [];
|
|
|
|
+ foreach ($result as $key => $value) {
|
|
|
|
+ $temp = [];
|
|
|
|
+ $temp['platform']= $value['platform'];
|
|
|
|
+ $temp['order_no']= $value['order_no'];
|
|
|
|
+ $temp['nickname']= $value['nickname'];
|
|
|
|
+ $temp['send_order_id']= $value['send_order_id'];
|
|
|
|
+ $temp['uid']= $value['uid'];
|
|
|
|
+ $temp['register_ip']= $value['register_ip'];
|
|
|
|
+ $temp['register_time']= $value['register_time'];
|
|
|
|
+ $temp['pay_time']= $value['pay_time'];
|
|
|
|
+ $temp['amount']= $value['amount'];
|
|
|
|
+ $temp['status']= $value['status'];
|
|
|
|
+ $temp['content']= $value['content'];
|
|
|
|
+ $temp['report_percent']= $value['report_percent'];
|
|
|
|
+ $temp['config_percent']= $value['config_percent'];
|
|
|
|
+ $temp['adid']= $value['adid'];
|
|
|
|
+ $data[] = $temp;
|
|
|
|
+ }
|
|
$headers = [
|
|
$headers = [
|
|
- '订单号',
|
|
|
|
- '用户ID',
|
|
|
|
|
|
+ '平台',
|
|
|
|
+ '订单编号',
|
|
|
|
+ '推广员',
|
|
|
|
+ '派单id',
|
|
|
|
+ '用户id',
|
|
|
|
+ '注册ip',
|
|
'注册时间',
|
|
'注册时间',
|
|
- '注册IP',
|
|
|
|
- '下单金额',
|
|
|
|
- '支付时间',
|
|
|
|
- '下单IP',
|
|
|
|
- '绑定ID',
|
|
|
|
- '广告计划ID',
|
|
|
|
- '推广平台',
|
|
|
|
|
|
+ '充值时间',
|
|
|
|
+ '充值金额',
|
|
|
|
+ '是否回传',
|
|
'回传状态',
|
|
'回传状态',
|
|
- '回传结果类型',
|
|
|
|
'回传结果',
|
|
'回传结果',
|
|
'回传百分比',
|
|
'回传百分比',
|
|
'回传配置百分比'
|
|
'回传配置百分比'
|
|
|
|
+ '广告计划id'
|
|
];
|
|
];
|
|
- ExcelHelper::exportWebFileCsv($headers, $result, "回传日志");
|
|
|
|
|
|
+ ExcelHelper::exportWebFileCsv($headers, $data, "回传日志");
|
|
}
|
|
}
|
|
|
|
|
|
public function setSwitch(Request $request)
|
|
public function setSwitch(Request $request)
|