Forráskód Böngészése

1、企业类库 修复 获取部门员工列表 方法getUserList(),
无法正常递归获取子部门员工列表的问题。感谢Talent.Miao提出

binsee 10 éve
szülő
commit
62c0a52d1f
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      Thinkphp/qywechat.class.php
  2. 1 1
      qywechat.class.php

+ 1 - 1
Thinkphp/qywechat.class.php

@@ -1229,7 +1229,7 @@ class Wechat
 	public function getUserList($department_id,$fetch_child=0,$status=0){
 	    if (!$this->access_token && !$this->checkAuth()) return false;
 	    $result = $this->http_get(self::API_URL_PREFIX.self::USER_LIST_URL.'access_token='.$this->access_token
-	            .'&department_id='.$department_id.'&fetch_child'.$fetch_child.'&status='.$status);
+	            .'&department_id='.$department_id.'&fetch_child='.$fetch_child.'&status='.$status);
 	    if ($result)
 	    {
 	        $json = json_decode($result,true);

+ 1 - 1
qywechat.class.php

@@ -1220,7 +1220,7 @@ class Wechat
 	public function getUserList($department_id,$fetch_child=0,$status=0){
 	    if (!$this->access_token && !$this->checkAuth()) return false;
 	    $result = $this->http_get(self::API_URL_PREFIX.self::USER_LIST_URL.'access_token='.$this->access_token
-	            .'&department_id='.$department_id.'&fetch_child'.$fetch_child.'&status='.$status);
+	            .'&department_id='.$department_id.'&fetch_child='.$fetch_child.'&status='.$status);
 	    if ($result)
 	    {
 	        $json = json_decode($result,true);