Commit 741316a6 by 冷斌

fix bug

parent 076a9daa
<?php <?php
use Yansongda\Pay\Pay;
/** /**
* composer require yansongda/pay -vvv * composer require yansongda/pay -vvv
* *
...@@ -29,17 +27,7 @@ class Wxpay ...@@ -29,17 +27,7 @@ class Wxpay
{ {
$config = $this->config(); $config = $this->config();
return Pay::wechat($config); return Yansongda\Pay\Pay::wechat($config);
}
public function getOpenid()
{
return (new JsApiPay())->GetOpenid($this->config());
}
public function getUserInfo($openid, $accessToken)
{
return (new JsApiPay())->getUserInfo($openid, $accessToken);
} }
public function scan(array $order) public function scan(array $order)
...@@ -123,7 +111,7 @@ class Wxpay ...@@ -123,7 +111,7 @@ class Wxpay
return $wx->success()->send(); return $wx->success()->send();
} }
} catch (\Exception $e) { } catch (\Exception $e) {
\Yii::error($e->getMessage()); $e->getMessage();
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment