Skip to content

Commit

Permalink
fix #3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
imaxwen committed Mar 31, 2017
1 parent a95d5c8 commit 32028f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Wechat.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function __get($name)
try {
return parent::__get($name);
}catch (\Exception $e) {
if($this->app->$name) {
if($this->getApp()->$name) {
return $this->app->$name;
}else{
throw $e->getPrevious();
Expand All @@ -164,4 +164,4 @@ public function getIsWechat()
{
return strpos($_SERVER["HTTP_USER_AGENT"], "MicroMessenger") !== false;
}
}
}

0 comments on commit 32028f2

Please sign in to comment.