作者 chencheng

0529-test-4

... ... @@ -33,7 +33,6 @@ class Wechat {
static public function initWechat(){
$appid= config("site.appid");
$appsecret= config("site.appsecret");
//easyWechat配置
$config = [
'app_id' => $appid,
... ... @@ -41,7 +40,7 @@ class Wechat {
// 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名
'response_type' => 'array',
];
self::$app = Factory::officialAccount(self::$config);
self::$app = Factory::officialAccount($config);
return self::$app;
}
... ...