diff --git a/Application/Admin/Controller/TestResourceController.class.php b/Application/Admin/Controller/TestResourceController.class.php index 538bfd9e1..0d8416134 100644 --- a/Application/Admin/Controller/TestResourceController.class.php +++ b/Application/Admin/Controller/TestResourceController.class.php @@ -317,20 +317,6 @@ class TestResourceController extends ThinkController ->select(); $this->AjaxReturn($data); - } - //获取当前和当前子渠道的渠道id - public function get_all_promote(){ - $pro_id=get_prmoote_chlid_account(get_pid()); -// var_dump($pro_id);die(); - foreach ($pro_id as $key => $value) { - $pro_id1[]=$value['id']; - } - if(!empty($pro_id1)){ - $pro_id2=array_merge($pro_id1,array(get_pid())); - }else{ - $pro_id2=array(get_pid()); - } - return $pro_id2; } /** * 系统非常规MD5加密方法 @@ -354,7 +340,6 @@ class TestResourceController extends ThinkController $i_account=I('user_account')[$i]; if (!empty($i_account)) { $user=M('user', 'tab_')->field('promote_id,promote_account,password,phone')->where(['account'=>$i_account])->find(); -// $promote = $this->get_all_promote(); if (!$user) { M('test_resource', 'tab_')->rollback();//回滚 $this->error($i_account.'账号不存在');