|
|
|
@ -239,7 +239,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$queryPromote = $this->getQueryPromote($levelPromote);
|
|
|
|
|
|
|
|
|
|
$loginPromote = $this->getLoginPromote();
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -508,7 +508,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
* @author sunke
|
|
|
|
|
*/
|
|
|
|
|
public function testresource_data_export() {
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -574,7 +574,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
* @author sunke
|
|
|
|
|
*/
|
|
|
|
|
public function testresourcelists_data_export() {
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -644,7 +644,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
* @author sunke
|
|
|
|
|
*/
|
|
|
|
|
public function supportNumberList_data_export() {
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -710,7 +710,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
$serverId = I('server_id', 0);
|
|
|
|
|
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -800,7 +800,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
*/
|
|
|
|
|
public function regist_data_export() {
|
|
|
|
|
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -877,11 +877,11 @@ class DownloadController extends BaseController {
|
|
|
|
|
public function children_data_export() {
|
|
|
|
|
$promoteType = intval(I('promote_type', 0));
|
|
|
|
|
$loginer = $this->getLoginPromote();
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
|
$map['promote_id'] = PID;
|
|
|
|
|
$map['id'] = PID;
|
|
|
|
|
}else {
|
|
|
|
|
foreach ($rs as $rsKey => $rsValue) {
|
|
|
|
|
$id = $rsValue['id'];
|
|
|
|
@ -889,7 +889,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
$childPromoteIds = rtrim($childPromoteIds, ',');
|
|
|
|
|
$childPromoteIds .= ',' . PID;
|
|
|
|
|
$map['promote_id'] = ['in', $childPromoteIds];
|
|
|
|
|
$map['id'] = ['in', $childPromoteIds];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($promoteType == 0) {
|
|
|
|
@ -942,7 +942,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
* @author sunke
|
|
|
|
|
*/
|
|
|
|
|
public function coinrecord_data_export() {
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -1105,7 +1105,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
* @author sunke
|
|
|
|
|
*/
|
|
|
|
|
public function mycoin_data_export() {
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -1167,7 +1167,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
*/
|
|
|
|
|
public function recharge_data_export() {
|
|
|
|
|
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -1259,7 +1259,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$promoteId = I('promote_id', 0);
|
|
|
|
|
$sdkVersion = I('sdk_version', 0);
|
|
|
|
|
$headmanPromoteId = I('headman_promote_id', 0);
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -1436,7 +1436,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$headmanPromoteId = I('headman_promote_id', 0);
|
|
|
|
|
$playTime = I('play_time', '');
|
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
@ -1558,7 +1558,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$begtime = I('begtime','');
|
|
|
|
|
$endtime = I('endtime','');
|
|
|
|
|
// $childPromoteIds = getAllChildPromoteList(3);
|
|
|
|
|
$map1['chain'] = ['like','%'.PID.'/'.'%'];
|
|
|
|
|
$map1['chain'] = ['like','%'.'/'.PID.'/'.'%'];
|
|
|
|
|
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if(empty($rs)) {
|
|
|
|
|