Commit 9b6db038 authored by jianghaiming's avatar jianghaiming

Merge branch 'pindan_activity_list_optimize' into develop

parents 3ed8e997 f071c65b
......@@ -451,8 +451,9 @@ class UserService
*/
public static function getAccessToken()
{
$appid = \Yaf\Registry::get('config')->wechat->appid;
$appsecret = \Yaf\Registry::get('config')->wechat->secret;
$wechatFrom = 'merchant-pub-pin';
$appid = \Yaf\Registry::get('config')->wechat->appid->$wechatFrom;
$appsecret = \Yaf\Registry::get('config')->wechat->secret->$wechatFrom;
$url = "https://api.weixin.qq.com/cgi-bin/token";
$params = [
'grant_type' => 'client_credential',
......
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