Commit 25fd797a authored by jianghaiming's avatar jianghaiming

Merge branch 'pindan_activity_list_optimize' into test

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