4级推广申请资源修正

master
chenzhi 5 years ago
parent 498de9ab75
commit 8212b4ecaf

@ -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.'账号不存在');

Loading…
Cancel
Save