zhanglinxin 1 年之前
父节点
当前提交
fe2f175cb5
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      application/common/service/DingtalkService.php

+ 11 - 0
application/common/service/DingtalkService.php

@@ -76,6 +76,10 @@ class DingtalkService
         $req->setCursor("0");
         $req->setSize("100");
         $resp = $c->execute($req, $accessToken, "https://oapi.dingtalk.com/topapi/v2/user/list");
+        p($resp['errcode']);
+        p($resp['errmsg']);
+        p($resp['result']);
+        exit;
         if ($resp->errcode == 0 && $resp->errmsg == 'ok') {
             $result = $resp->result;
             return $result;
@@ -151,6 +155,13 @@ class DingtalkService
      **/
     public static function renew()
     {
+        $res = self::user_list(500773946);
+        p($res['errcode']);
+        p($res['errmsg']);
+        p($res['result']);
+        p($res['result']);
+        exit;
+
         // 更新部门
 //        $department_data = self::get_tree(1);
         $department_data = '[{"dept_id":438337214,"name":"BOSS","parent_id":1},{"dept_id":438145402,"name":"项目管理中心","parent_id":1},{"dept_id":501674219,"name":"技术部","parent_id":438145402},{"dept_id":500773946,"name":"项目一组","parent_id":501674219},{"dept_id":501193520,"name":"项目二组","parent_id":501674219},{"dept_id":731200005,"name":"Ui测试组","parent_id":501674219},{"dept_id":501415496,"name":"销售部","parent_id":438145402},{"dept_id":859178110,"name":"运营部","parent_id":438145402},{"dept_id":724339668,"name":"职能支持中心","parent_id":1},{"dept_id":438218445,"name":"人力资源部","parent_id":724339668},{"dept_id":702458745,"name":"财务部","parent_id":724339668}]';