mirror of
https://gitee.com/yansongda/pay.git
synced 2024-11-29 18:58:38 +08:00
update
This commit is contained in:
parent
500fbdb2c5
commit
e1b4498197
@ -90,7 +90,7 @@ class Pay
|
||||
*/
|
||||
public static function __callStatic(string $service, array $config)
|
||||
{
|
||||
if (!empty($config) && !self::hasContainer()) {
|
||||
if (!empty($config)) {
|
||||
self::config(...$config);
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ class Pay
|
||||
*/
|
||||
public static function config(array $config = []): Pay
|
||||
{
|
||||
if (empty($config) && self::hasContainer()) {
|
||||
if (self::hasContainer() && !($config['_force'] ?? false)) {
|
||||
return self::get(Pay::class);
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ use Yansongda\Supports\Pipeline;
|
||||
|
||||
class PayTest extends TestCase
|
||||
{
|
||||
protected function tearDown (): void
|
||||
protected function tearDown(): void
|
||||
{
|
||||
Pay::clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user