php调用自身一定要用 return
2021-06-25 20:05
标签:sea error pre ror ret cond arch condition php php调用自身一定要用 return 标签:sea error pre ror ret cond arch condition php 原文地址:http://www.cnblogs.com/Ychao/p/7153611.html 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;
}