Commit eed53975 by yeran

update some bugs

1 parent 1d0d7df4
Showing with 3 additions and 3 deletions
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
namespace Payment\Notify; namespace Payment\Notify;
use Payment\Common\PayException; use Payment\Common\PayException;
use Payment\Common\MiConfig; use Payment\Common\SwConfig;
use Payment\Config; use Payment\Config;
use Payment\Utils\ArrayUtil; use Payment\Utils\ArrayUtil;
...@@ -27,7 +27,7 @@ class SwNotify extends NotifyStrategy ...@@ -27,7 +27,7 @@ class SwNotify extends NotifyStrategy
parent::__construct($config); parent::__construct($config);
try { try {
$this->config = new MiConfig($config); $this->config = new SwConfig($config);
} catch (PayException $e) { } catch (PayException $e) {
throw $e; throw $e;
} }
...@@ -85,7 +85,7 @@ class SwNotify extends NotifyStrategy ...@@ -85,7 +85,7 @@ class SwNotify extends NotifyStrategy
$values = ArrayUtil::removeKeys($retData, ['key_sign', 'pay_trace','pay_time','receipt_fee']); $values = ArrayUtil::removeKeys($retData, ['key_sign', 'pay_trace','pay_time','receipt_fee']);
$values = ArrayUtil::paraFilter($values); $values = ArrayUtil::paraFilter($values);
$values = ArrayUtil::arraySort($values); // $values = ArrayUtil::arraySort($values);
$signStr = ArrayUtil::createLinkstring($values); $signStr = ArrayUtil::createLinkstring($values);
$signStr .= '&access_token=' . $this->access_token; $signStr .= '&access_token=' . $this->access_token;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!