fix:更新已知bug,优化代码

This commit is contained in:
Ying
2022-11-28 19:11:12 +08:00
parent f6aee95cfc
commit 9445b206a2
1378 changed files with 53759 additions and 20789 deletions

View File

@@ -21,11 +21,11 @@ use Yansongda\Supports\Collection;
use Yansongda\Supports\Str;
/**
* @method ResponseInterface app(array $order) APP 支付
* @method Collection mini(array $order) 小程序支付
* @method Collection mp(array $order) 公众号支付
* @method Collection scan(array $order) 扫码支付
* @method ResponseInterface wap(array $order) H5 支付
* @method Collection app(array $order) APP 支付
* @method Collection mini(array $order) 小程序支付
* @method Collection mp(array $order) 公众号支付
* @method Collection scan(array $order) 扫码支付
* @method Collection wap(array $order) H5 支付
*/
class Wechat extends AbstractProvider
{
@@ -40,12 +40,11 @@ class Wechat extends AbstractProvider
];
/**
* @throws \Yansongda\Pay\Exception\ContainerDependencyException
* @return \Psr\Http\Message\MessageInterface|\Yansongda\Supports\Collection|array|null
*
* @throws \Yansongda\Pay\Exception\ContainerException
* @throws \Yansongda\Pay\Exception\InvalidParamsException
* @throws \Yansongda\Pay\Exception\ServiceNotFoundException
*
* @return \Psr\Http\Message\MessageInterface|\Yansongda\Supports\Collection|array|null
*/
public function __call(string $shortcut, array $params)
{
@@ -58,12 +57,11 @@ class Wechat extends AbstractProvider
/**
* @param array|string $order
*
* @throws \Yansongda\Pay\Exception\ContainerDependencyException
* @return array|\Yansongda\Supports\Collection
*
* @throws \Yansongda\Pay\Exception\ContainerException
* @throws \Yansongda\Pay\Exception\InvalidParamsException
* @throws \Yansongda\Pay\Exception\ServiceNotFoundException
*
* @return array|\Yansongda\Supports\Collection
*/
public function find($order)
{
@@ -87,7 +85,6 @@ class Wechat extends AbstractProvider
/**
* @param array|string $order
*
* @throws \Yansongda\Pay\Exception\ContainerDependencyException
* @throws \Yansongda\Pay\Exception\ContainerException
* @throws \Yansongda\Pay\Exception\InvalidParamsException
* @throws \Yansongda\Pay\Exception\ServiceNotFoundException
@@ -102,12 +99,11 @@ class Wechat extends AbstractProvider
}
/**
* @throws \Yansongda\Pay\Exception\ContainerDependencyException
* @return array|\Yansongda\Supports\Collection
*
* @throws \Yansongda\Pay\Exception\ContainerException
* @throws \Yansongda\Pay\Exception\InvalidParamsException
* @throws \Yansongda\Pay\Exception\ServiceNotFoundException
*
* @return array|\Yansongda\Supports\Collection
*/
public function refund(array $order)
{
@@ -119,10 +115,8 @@ class Wechat extends AbstractProvider
/**
* @param array|\Psr\Http\Message\ServerRequestInterface|null $contents
*
* @throws \Yansongda\Pay\Exception\ContainerDependencyException
* @throws \Yansongda\Pay\Exception\ContainerException
* @throws \Yansongda\Pay\Exception\InvalidParamsException
* @throws \Yansongda\Pay\Exception\ServiceNotFoundException
*/
public function callback($contents = null, ?array $params = null): Collection
{