Commit f0d8921f authored by luoboss's avatar luoboss
Browse files

调整微信和企业微信缓存有效期时间。

parent dc9489ac
Showing with 2 additions and 2 deletions
+2 -2
......@@ -20,7 +20,7 @@ class weixin {
$this->appsecret = $weixin_api['appsecret'];
$FileCache = new FileCache();
$FileCache->setTime = 7200;
$FileCache->setTime = 6500;
$result = $FileCache->loadCache('access_token');
if(empty($result)){
$result = (new cURL())->init("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$this->appID}&secret={$this->appsecret}");
......
......@@ -24,7 +24,7 @@ class weixinWork {
$this->Secret = $weixinWork_api['Secret'];
$FileCache = new FileCache();
$FileCache->setTime = 7200;
$FileCache->setTime = 6500;
$result = $FileCache->loadCache('weixinWork_access_token');
if(empty($result)){
$result = (new cURL())->init("https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid={$this->corpid}&corpsecret=$this->Secret");
......
Supports Markdown
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