Skip to content

Commit

Permalink
update 自定义配置不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqizjl committed Dec 11, 2018
1 parent ed768d4 commit 03b83b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,38 +30,38 @@ public static function getFacadeAccessor()
*/
public static function officialAccount($name = '',$config = [])
{
return $name ? app('wechat.official_account.' . $name, $config) : app('wechat.official_account', $config);
return $name ? app('wechat.official_account.' . $name, ["config"=>$config]) : app('wechat.official_account', ["config"=>$config]);
}

/**
* @return \EasyWeChat\Work\Application
*/
public static function work($name = '',$config = [])
{
return $name ? app('wechat.work.' . $name, $config) : app('wechat.work', $config);
return $name ? app('wechat.work.' . $name, ["config"=>$config]) : app('wechat.work', ["config"=>$config]);
}

/**
* @return \EasyWeChat\Payment\Application
*/
public static function payment($name = '',$config = [])
{
return $name ? app('wechat.payment.' . $name, $config) : app('wechat.payment', $config);
return $name ? app('wechat.payment.' . $name, ["config"=>$config]) : app('wechat.payment', ["config"=>$config]);
}

/**
* @return \EasyWeChat\MiniProgram\Application
*/
public static function miniProgram($name = '',$config = [])
{
return $name ? app('wechat.mini_program.' . $name, $config) : app('wechat.mini_program', $config);
return $name ? app('wechat.mini_program.' . $name, ["config"=>$config]) : app('wechat.mini_program', ["config"=>$config]);
}

/**
* @return \EasyWeChat\OpenPlatform\Application
*/
public static function openPlatform($name = '',$config = [])
{
return $name ? app('wechat.open_platform.' . $name, $config) : app('wechat.open_platform', $config);
return $name ? app('wechat.open_platform.' . $name, ["config"=>$config]) : app('wechat.open_platform', ["config"=>$config]);
}
}

0 comments on commit 03b83b7

Please sign in to comment.