Commit ad2ce4a3 authored by 梁俊杰's avatar 梁俊杰

1

parent 8c9ee509
......@@ -27,6 +27,7 @@ $config = [
'corp_id' => 'ding23fb054a1a39322935c2f4657eb6378f',
'app_key' => 'dingcld9j00l6iqnvekg',
'app_secret' => 'KBADQX4EGwFwV3MLRaon918OTgnZNnq5TjRe7CfYPNqza9fP_wO9zgfUSuKXdqUq',
'corp_secret' => 'KBADQX4EGwFwV3MLRaon918OTgnZNnq5TjRe7CfYPNqza9fP_wO9zgfUSuKXdqUq',
];
......@@ -35,8 +36,8 @@ $c = new DingTalkClient(DingTalkConstant::$CALL_TYPE_OAPI, DingTalkConstant::$ME
$req = new OapiGettokenRequest();
$req->setAppkey($config['app_key']);
$req->setAppsecret($config['app_key']);
$req->setCorpid($config['corp_id']);
/*$req->setCorpid($config['corp_id']);
$req->setCorpsecret($config['corp_secret']);*/
$res = $c->execute($req,null,'https://oapi.dingtalk.com/gettoken');
//$resp=$c->execute($req, $accessToken,"https://oapi.dingtalk.com/user/get");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment