Commit f071c65b authored by jianghaiming's avatar jianghaiming

update:修改获取链接

parent 6d02dfee
...@@ -303,8 +303,9 @@ class UserService ...@@ -303,8 +303,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