Commit 741316a6 by 冷斌

fix bug

parent 076a9daa
<?php
use Yansongda\Pay\Pay;
/**
* composer require yansongda/pay -vvv
*
......@@ -29,17 +27,7 @@ class Wxpay
{
$config = $this->config();
return Pay::wechat($config);
}
public function getOpenid()
{
return (new JsApiPay())->GetOpenid($this->config());
}
public function getUserInfo($openid, $accessToken)
{
return (new JsApiPay())->getUserInfo($openid, $accessToken);
return Yansongda\Pay\Pay::wechat($config);
}
public function scan(array $order)
......@@ -123,7 +111,7 @@ class Wxpay
return $wx->success()->send();
}
} 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