Skip to content

Commit

Permalink
单例导致的问题修复
Browse files Browse the repository at this point in the history
fixed #82.
  • Loading branch information
helei112g committed Sep 20, 2017
1 parent 350f472 commit 2245e2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Client/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ protected static function getInstance($channel, $config)

if (is_null(self::$instance)) {
static::$instance = new ChargeContext();
}

try {
static::$instance->initCharge($channel, $config);
} catch (PayException $e) {
throw $e;
}
try {
static::$instance->initCharge($channel, $config);
} catch (PayException $e) {
throw $e;
}

return static::$instance;
Expand Down

0 comments on commit 2245e2a

Please sign in to comment.