|
|
@ -1625,10 +1625,12 @@ function setPowerPromoteIds(&$map, $column = 'promote_id') {
|
|
|
|
|
|
|
|
|
|
|
|
function get_promote_listOther($select='') {
|
|
|
|
function get_promote_listOther($select='') {
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
$map['id'] =array('in',$promoteRoot);
|
|
|
|
// $map['id'] =array('in',$promoteRoot);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'id');
|
|
|
|
|
|
|
|
|
|
|
|
$list = M("Promote","tab_")->field('id,account,balance_coin')->where($map)->select();//where("status=1")->
|
|
|
|
$list = M("Promote","tab_")->field('id,account,balance_coin')->where($map)->select();//where("status=1")->
|
|
|
|
if (empty($list)){return '';}
|
|
|
|
if (empty($list)){return '';}
|
|
|
@ -1652,10 +1654,12 @@ function promote_listsOther($type){
|
|
|
|
$map = '';
|
|
|
|
$map = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
$map['id'] =array('in',$promoteRoot);
|
|
|
|
// $map['id'] =array('in',$promoteRoot);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'id');
|
|
|
|
|
|
|
|
|
|
|
|
$data = M('promote','tab_')->where($map)->select();
|
|
|
|
$data = M('promote','tab_')->where($map)->select();
|
|
|
|
|
|
|
|
|
|
|
|