Update WechatService.php

This commit is contained in:
Anyon 2019-07-17 11:35:07 +08:00
parent c2ad6826a7
commit 487ad85b38

View File

@ -130,7 +130,7 @@ class WechatService extends \We
} else { } else {
throw new \think\Exception("Class {$class} not found"); throw new \think\Exception("Class {$class} not found");
} }
} } else {
set_time_limit(3600); set_time_limit(3600);
list($appid, $appkey) = [sysconf('wechat_thr_appid'), sysconf('wechat_thr_appkey')]; list($appid, $appkey) = [sysconf('wechat_thr_appid'), sysconf('wechat_thr_appkey')];
$token = strtolower("{$name}-{$appid}-{$appkey}-{$type}"); $token = strtolower("{$name}-{$appid}-{$appkey}-{$type}");
@ -143,6 +143,7 @@ class WechatService extends \We
throw new \think\Exception("Yar or Soap extensions are not installed."); throw new \think\Exception("Yar or Soap extensions are not installed.");
} }
} }
}
/** /**
* 获取微信网页JSSDK * 获取微信网页JSSDK