master
sunke 5 years ago
parent e7397e38b9
commit 377fdcf70f

@ -249,7 +249,11 @@ class DownloadController extends BaseController {
$levelPromote = $this->getLevelPromote();
$queryPromote = $this->getQueryPromote($levelPromote);
$map = [];
$map['chain'] = ['like', $queryPromote['chain'] . $queryPromote['id'] . '/%'];
if ($queryPromote['level'] == 4) {
$map['id'] = $queryPromote['id'];
}else {
$map['chain'] = ['like', $queryPromote['chain'] . $queryPromote['id'] . '/%'];
}
$createTime = I('create_time', '');
if ($createTime != '') {
$createTimeRow = explode(' 至 ', $createTime);
@ -2349,13 +2353,21 @@ public function iosDetailExcelInfo($id,$map) {
);
$pid = $map['pid'];
unset($map['pid']);
$map1['chain'] = $map['chain'];
if (!empty($map['chain'])) {
$map1['chain'] = $map['chain'];
}
if (!empty($map['create_time'])) {
$map2['create_time'] = $map['create_time'];
$map1['create_time'] = $map['create_time'];
$tfMap['create_time'] = $map['create_time'];
$companyMap['create_time'] = $map['create_time'];
$superMap['create_time'] = $map['create_time'];
}
if (!empty($map['id'])) {
$map1['id'] = $map['id'];
$tfMap['create_time'] = $map['craete_time'];
$superMap['create_time'] = $map['craete_time'];
$companyMap['create_time'] = $map['craete_time'];
}
$rs = M('promote', 'tab_')->field(['id'])->where($map1)->select();
$allids = array_column($rs, 'id');
array_push($allids, PID);

Loading…
Cancel
Save