钉钉审批明确错误信息

hotfix/paypal-note
LiaoYijun 3 years ago
parent 1703505031
commit 47c3d6c4d0

@ -34,7 +34,7 @@ class index extends CI_Controller {
$channelType = $this->input->post('ChannelType'); $channelType = $this->input->post('ChannelType');
if(empty($postunionid)){ if(empty($postunionid)){
exit('参数错误'); exit('参数(postunionid)为空');
} }
//获取access_token //获取access_token
@ -118,7 +118,7 @@ class index extends CI_Controller {
//获取用户id //获取用户id
function getuserid($unionid){ function getuserid($unionid){
if(empty($unionid)){ if(empty($unionid)){
exit('参数为空'); exit('参数(unionid)为空');
}else{ }else{
$access_url = 'https://oapi.dingtalk.com/gettoken?appkey='.$this->AppKey.'&appsecret='.$this->AppSecret; $access_url = 'https://oapi.dingtalk.com/gettoken?appkey='.$this->AppKey.'&appsecret='.$this->AppSecret;
$access_token = GetPost_http($access_url,'',''); $access_token = GetPost_http($access_url,'','');
@ -134,7 +134,7 @@ class index extends CI_Controller {
//获取部门列表 //获取部门列表
function getdeptid($userid){ function getdeptid($userid){
if(empty($userid)){ if(empty($userid)){
exit('参数错误'); exit('参数(userid)为空');
}else{ }else{
$access_url = 'https://oapi.dingtalk.com/gettoken?appkey='.$this->AppKey.'&appsecret='.$this->AppSecret; $access_url = 'https://oapi.dingtalk.com/gettoken?appkey='.$this->AppKey.'&appsecret='.$this->AppSecret;
$access_token = GetPost_http($access_url,'',''); $access_token = GetPost_http($access_url,'','');

Loading…
Cancel
Save