From fc5300cc6458e44e9df7557a7750ec977a7a661b Mon Sep 17 00:00:00 2001 From: cyc Date: Wed, 8 Jan 2020 11:23:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E6=94=B6=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/dingtools/controllers/index.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/webht/third_party/dingtools/controllers/index.php b/webht/third_party/dingtools/controllers/index.php index 103c6de4..a98745af 100644 --- a/webht/third_party/dingtools/controllers/index.php +++ b/webht/third_party/dingtools/controllers/index.php @@ -118,7 +118,7 @@ class index extends CI_Controller { } //创建回调 - public function callback(){ + public function registercallback(){ $access_url = 'https://oapi.dingtalk.com/gettoken?appkey='.$this->AppKey.'&appsecret='.$this->AppSecret; $access_token = GetPost_http($access_url,'',''); $access_token = json_decode($access_token)->access_token; @@ -134,15 +134,13 @@ class index extends CI_Controller { print_r($register); } - public function recivecallback(){ + public function recivecallback(){ $recivejson = file_get_contents('php://input'); - $encrypt = json_decode($recivejson)->encrypt; - echo '{ - "msg_signature":"", - "timeStamp":"'.time().'", - "nonce":"123456", - "encrypt":"'.$encrypt.'" - }'; + log_message('error','dingding回调:'.$recivejson); + log_message('error','signature:'.$_GET['signature']); + log_message('error','timestamp:'.$_GET['timestamp']); + log_message('error','nonce:'.$_GET['nonce']); + log_message('error','get:'.$_GET); } } \ No newline at end of file