正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
@@ -33,7 +33,6 @@ class Wechat { | @@ -33,7 +33,6 @@ class Wechat { | ||
33 | static public function initWechat(){ | 33 | static public function initWechat(){ |
34 | $appid= config("site.appid"); | 34 | $appid= config("site.appid"); |
35 | $appsecret= config("site.appsecret"); | 35 | $appsecret= config("site.appsecret"); |
36 | - | ||
37 | //easyWechat配置 | 36 | //easyWechat配置 |
38 | $config = [ | 37 | $config = [ |
39 | 'app_id' => $appid, | 38 | 'app_id' => $appid, |
@@ -41,7 +40,7 @@ class Wechat { | @@ -41,7 +40,7 @@ class Wechat { | ||
41 | // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 | 40 | // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 |
42 | 'response_type' => 'array', | 41 | 'response_type' => 'array', |
43 | ]; | 42 | ]; |
44 | - self::$app = Factory::officialAccount(self::$config); | 43 | + self::$app = Factory::officialAccount($config); |
45 | return self::$app; | 44 | return self::$app; |
46 | } | 45 | } |
47 | 46 |
-
请 注册 或 登录 后发表评论