|
|
|
@ -2363,8 +2363,17 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
|
$allTFMap['create_time'] = $map['create_time'];
|
|
|
|
|
$companyMap['create_time'] = $map['create_time'];
|
|
|
|
|
$allSuperMap['create_time'] = $map['create_time'];
|
|
|
|
|
$iosTimeMap['register_time'] = $map['create_time'];
|
|
|
|
|
// $iosTimeMap['register_time'] = $map['create_time'];
|
|
|
|
|
$map10['register_time'] = $map['create_time'];
|
|
|
|
|
$alliosMap['register_time'] = $map['create_time'];
|
|
|
|
|
$allUserMap['register_time'] = $map['create_time'];
|
|
|
|
|
$allTFMap['create_time'] = $map['create_time'];
|
|
|
|
|
$allSuperMap['create_time'] = $map['create_time'];
|
|
|
|
|
$companyMap['create_time'] = $map['create_time'];
|
|
|
|
|
$sunday = strtotime('-1 sunday', $map['create_time'][1][1]) + 24 * 3600;
|
|
|
|
|
$m['create_time'] = ['between', [$sunday, $map['create_time'][1][1]]];
|
|
|
|
|
$iosTimeMap['register_time'] = $m['create_time'];
|
|
|
|
|
$alliosMap['register_time'] = $m['create_time'];
|
|
|
|
|
}
|
|
|
|
|
if (!empty($map['id'])) {
|
|
|
|
|
$map1['id'] = $map['id'];
|
|
|
|
@ -2382,16 +2391,20 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
|
$allUserMap['device_type'] = 2;
|
|
|
|
|
$allTFMap['promote_id'] = ['in', $allids];
|
|
|
|
|
$allTFMap['type'] = 2;
|
|
|
|
|
|
|
|
|
|
$allSuperMap['promote_id'] = ['in', $allids];
|
|
|
|
|
$allSuperMap['type'] = 3;
|
|
|
|
|
|
|
|
|
|
$companyMap['promote_id'] = ['in', $allids];
|
|
|
|
|
$companyMap['type'] = 1;
|
|
|
|
|
|
|
|
|
|
$allUsersCounts = M('user', 'tab_')->where($allUserMap)->count();
|
|
|
|
|
$allTFCounts = M('package_download_log', 'tab_')->where($allTFMap)->count();
|
|
|
|
|
$allSuperCounts = M('package_download_log', 'tab_')->where($allSuperMap)->count();
|
|
|
|
|
$allCompanyCounts = M('package_download_log', 'tab_')->where($companyMap)->count();
|
|
|
|
|
$alliosMap['promote_id'] = ['in', $allids];
|
|
|
|
|
$alliosMap['device_type'] = 2;
|
|
|
|
|
|
|
|
|
|
$allIosCounts = M('user', 'tab_')->where($alliosMap)->count();
|
|
|
|
|
$csvFileName = $xlsName.'.csv';
|
|
|
|
|
header('Content-Description: File Transfer');
|
|
|
|
@ -2442,7 +2455,9 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
|
$tfCounts = M('package_download_log', 'tab_')->where($tfMap)->count(); //TF下载量
|
|
|
|
|
$companyCounts = M('package_download_log', 'tab_')->where($companyMap)->count(); //企业签下载量
|
|
|
|
|
$superCounts = M('package_download_log', 'tab_')->where($superMap)->count(); //超级签下载量
|
|
|
|
|
$usersCounts = M('user', 'tab_')->where(['promote_id' => $id, 'device_type'=>2])->count();
|
|
|
|
|
$map10['promote_id'] = $id;
|
|
|
|
|
$map10['device_type'] = 2;
|
|
|
|
|
$usersCounts = M('user', 'tab_')->where($map10)->count();
|
|
|
|
|
$tfpercent = number_format((intval($tfCounts) / intval($usersCounts)),2,'.','') * 100;
|
|
|
|
|
|
|
|
|
|
if (intval($usersCounts) == 0) {
|
|
|
|
|