Store the customized Shopro mall so it can be kept on the remote.
Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Service;
|
||||
|
||||
use Yansongda\Artful\Contract\ServiceProviderInterface;
|
||||
use Yansongda\Artful\Exception\ContainerException;
|
||||
use Yansongda\Pay\Pay;
|
||||
use Yansongda\Pay\Provider\Alipay;
|
||||
|
||||
class AlipayServiceProvider implements ServiceProviderInterface
|
||||
{
|
||||
/**
|
||||
* @throws ContainerException
|
||||
*/
|
||||
public function register(mixed $data = null): void
|
||||
{
|
||||
$service = new Alipay();
|
||||
|
||||
Pay::set(Alipay::class, $service);
|
||||
Pay::set('alipay', $service);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Service;
|
||||
|
||||
use Yansongda\Artful\Contract\ServiceProviderInterface;
|
||||
use Yansongda\Artful\Exception\ContainerException;
|
||||
use Yansongda\Pay\Pay;
|
||||
use Yansongda\Pay\Provider\Douyin;
|
||||
|
||||
class DouyinServiceProvider implements ServiceProviderInterface
|
||||
{
|
||||
/**
|
||||
* @throws ContainerException
|
||||
*/
|
||||
public function register(mixed $data = null): void
|
||||
{
|
||||
$service = new Douyin();
|
||||
|
||||
Pay::set(Douyin::class, $service);
|
||||
Pay::set('douyin', $service);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Service;
|
||||
|
||||
use Yansongda\Artful\Contract\ServiceProviderInterface;
|
||||
use Yansongda\Artful\Exception\ContainerException;
|
||||
use Yansongda\Pay\Pay;
|
||||
use Yansongda\Pay\Provider\Jsb;
|
||||
|
||||
class JsbServiceProvider implements ServiceProviderInterface
|
||||
{
|
||||
/**
|
||||
* @throws ContainerException
|
||||
*/
|
||||
public function register(mixed $data = null): void
|
||||
{
|
||||
$service = new Jsb();
|
||||
|
||||
Pay::set(Jsb::class, $service);
|
||||
Pay::set('jsb', $service);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Service;
|
||||
|
||||
use Yansongda\Artful\Contract\ServiceProviderInterface;
|
||||
use Yansongda\Artful\Exception\ContainerException;
|
||||
use Yansongda\Pay\Pay;
|
||||
use Yansongda\Pay\Provider\Unipay;
|
||||
|
||||
class UnipayServiceProvider implements ServiceProviderInterface
|
||||
{
|
||||
/**
|
||||
* @throws ContainerException
|
||||
*/
|
||||
public function register(mixed $data = null): void
|
||||
{
|
||||
$service = new Unipay();
|
||||
|
||||
Pay::set(Unipay::class, $service);
|
||||
Pay::set('unipay', $service);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Service;
|
||||
|
||||
use Yansongda\Artful\Contract\ServiceProviderInterface;
|
||||
use Yansongda\Artful\Exception\ContainerException;
|
||||
use Yansongda\Pay\Pay;
|
||||
use Yansongda\Pay\Provider\Wechat;
|
||||
|
||||
class WechatServiceProvider implements ServiceProviderInterface
|
||||
{
|
||||
/**
|
||||
* @throws ContainerException
|
||||
*/
|
||||
public function register(mixed $data = null): void
|
||||
{
|
||||
$service = new Wechat();
|
||||
|
||||
Pay::set(Wechat::class, $service);
|
||||
Pay::set('wechat', $service);
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户