From e25954306e3a936ff58c721bf68745796d56f691 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Mon, 24 Jun 2019 21:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=92=89=E9=92=89=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/index/controller/Oauth.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/application/index/controller/Oauth.php b/application/index/controller/Oauth.php index ce42571..f6e3377 100644 --- a/application/index/controller/Oauth.php +++ b/application/index/controller/Oauth.php @@ -9,7 +9,6 @@ namespace app\index\controller; -use app\common\Model\Client; use app\common\Model\Member; use controller\BasicApi; use EasyDingTalk\Application; @@ -23,27 +22,6 @@ class Oauth extends BasicApi public function index() { - $app = new Application(config('dingtalk.')); - $msg = [ - 'msgtype' => "oa", - 'oa' => [ - 'message_url' => 'http://dingtalk.com', - 'head' => ['bgcolor' => 'FFBBBBBB', 'title' => '消息通知'], - 'body' => ['title' => '888', 'content' => '666'], - ] - ]; - $params = [ - 'agent_id'=> '271863764', - 'userid_list' => 'manager9168', - 'msg'=> json_encode($msg) - ]; - $res = $app->conversation->sendCorporationMessage($params); - echo json_encode($res);die; - $userId = $app->user->getUseridByUnionid('3CnKFHEE7mX1hayPIHvpCwiEiE'); -// echo json_encode($userId);die; - $userId = $userId['userid']; - $user = $app->user->get($userId, $lang = null); - echo json_encode($user);die; } public function dingTalkOauth()