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 ...@@ -451,8 +451,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