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