zoukankan      html  css  js  c++  java
  • php调用自身一定要用 return

     public function get_quyu_info($data)
    {
    // $uid=$data['uid'];
    // if(!affair("role.Role")->isSuperManager($uid)){
    // return $this->ErrorInf("抱歉,您无权操作!");
    // }
    // ChromePhp::log(1);
    if($data['pid']){
    $flag = $this->getorg($data['pid']);
    if ($flag[0]['flag'] !=201){
    return $this->get_quyu_info($flag[0]);
    }
    }
    else{
    // $uid =$data['uid'];
    $uid = '2250741873492991';
    $_model = $this->Model("user.User");
    $pm = [
    'condition' => "where uid = '$uid'"
    ];
    $org_code = $_model -> search($pm);
    $org_name = $org_code[0]['atorg'];
    $flag=$this->getorg($org_name);
    if($flag[0]['flag'] !=201){
    return $this->get_quyu_info($flag[0]);
    }
    }
    return $flag;
    }
    你不能把坏习惯扔出窗外 但你可以一步步赶下电梯
  • 相关阅读:
    Test
    占位2
    开坑纪念
    function 类型(函数定义)----读书总结
    css位元素 after
    算法-哈希表
    CF547D
    CF538H
    CF516D
    CF505E
  • 原文地址:https://www.cnblogs.com/Ychao/p/7153611.html
Copyright © 2011-2022 走看看