Skip to content

Commit

Permalink
修复客户端调用同一个请求问题
Browse files Browse the repository at this point in the history
  • Loading branch information
helei112g committed Sep 20, 2017
1 parent 2245e2a commit 2eed0b4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions src/Client/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ protected static function getInstance($channel, $config)

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

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

return static::$instance;
Expand Down
10 changes: 5 additions & 5 deletions src/Client/Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ protected static function getInstance($type, $config)

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

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

return static::$instance;
Expand Down
10 changes: 5 additions & 5 deletions src/Client/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ protected static function getInstance($queryType, $config)

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

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

return static::$instance;
Expand Down
10 changes: 5 additions & 5 deletions src/Client/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ protected static function getInstance($channel, $config)

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

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

return static::$instance;
Expand Down
10 changes: 5 additions & 5 deletions src/Client/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ protected static function getInstance($channel, $config)

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

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

return static::$instance;
Expand Down

0 comments on commit 2eed0b4

Please sign in to comment.