mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-16 12:12:14 +08:00
Pre Merge pull request !16 from Hanyi/N/A
This commit is contained in:
commit
1c47cafd26
@ -30,7 +30,7 @@ class BasicWeWork extends BasicWeChat
|
|||||||
public function getAccessToken()
|
public function getAccessToken()
|
||||||
{
|
{
|
||||||
if ($this->access_token) return $this->access_token;
|
if ($this->access_token) return $this->access_token;
|
||||||
$ckey = $this->config->get('appid') . '_access_token';
|
$ckey = $this->config->get('appid') . $this->config->get('appsecret') . '_access_token';
|
||||||
if ($this->access_token = Tools::getCache($ckey)) return $this->access_token;
|
if ($this->access_token = Tools::getCache($ckey)) return $this->access_token;
|
||||||
list($appid, $secret) = [$this->config->get('appid'), $this->config->get('appsecret')];
|
list($appid, $secret) = [$this->config->get('appid'), $this->config->get('appsecret')];
|
||||||
$result = Tools::json2arr(Tools::get("https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid={$appid}&corpsecret={$secret}"));
|
$result = Tools::json2arr(Tools::get("https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid={$appid}&corpsecret={$secret}"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user