提交 bbba2a35 authored 作者: chengye's avatar chengye

test

上级 a6459e09
......@@ -247,4 +247,21 @@ if (!function_exists('getallheaders')){
}
return $headers;
}
}
if (!function_exists('curlGet')) {
function curlGet($url = '')
{
$curl = curl_init(); // 启动一个CURL会话
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // 跳过证书检查
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); // 从证书中检查SSL加密算法是否存在
$tmpInfo = curl_exec($curl); //返回api的json对象
//关闭URL请求
curl_close($curl);
return $tmpInfo; //返回json对象
}
}
\ No newline at end of file
......@@ -252,7 +252,7 @@ class flowModel extends Model
if(isset($this->rs['uid']))$this->uid = $this->rs['uid'];
if(!isset($this->rs['applydt']))$this->rs['applydt'] = '';
if(!isset($this->rs['status']))$this->rs['status'] = 1;
$uisfield = property_exists($this, 'uidfields') ? $this->uidfields : 'optid';
$uisfield = property_exists($this, 'uidfields') ? $this->uidfields : 'optid';
if($this->uid==0 && isset($this->rs[$uisfield]))$this->uid = $this->rs[$uisfield];
$this->optid = isset($this->rs['optid']) ? $this->rs['optid'] : $this->uid;
$this->urs = $this->adminmodel->getone($this->uid,'id,name,user,deptid,deptname,deptallname,face,ranking,superid,superpath,superman,deptpath');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论