quguofeng 1 年之前
父節點
當前提交
4e37dbd4d5
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      application/api/controller/Login.php

+ 0 - 3
application/api/controller/Login.php

@@ -35,11 +35,8 @@ class Login extends Base
     public function get_department(){
         $c = $this->get_obj()['obj'];
         $req = new \OapiV2DepartmentListsubRequest;
-        $req->setDeptId("891114410");
         $resp = $c->execute($req, $this->get_obj()['access_token'], "https://oapi.dingtalk.com/topapi/v2/department/listsub");
-        var_dump($resp);exit();
         if(isset($resp->result) && $resp->result){
-            var_dump($resp->result);exit();
             foreach ($resp->result as $value){
                 $id = Db::name('department')->where('dept_id',$value->dept_id)->value('id');
                 if(empty($id)){