build(hyperf): 迁移到 hyperf3.1

This commit is contained in:
李东云
2024-02-27 15:25:18 +08:00
parent 4d1b5d2ab7
commit d12858dda8
6 changed files with 2607 additions and 1041 deletions

View File

@@ -21,7 +21,7 @@ test(
* @throws GuzzleException
*/
function () {
$service = new GoodsRpc('http://192.168.2.218:9611');
$service = new GoodsRpc('http://192.168.2.246:9611');
$goods = $service->find(
1,
[

View File

@@ -18,7 +18,7 @@ use Singularity\HDK\Pay\Sdk\StripeRpc;
test('能够正常创建 Stripe 订单', function () {
/** @var StripeRpc $service */
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.218:9611']);
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.246:9611']);
$order = $service->createSession(
money: Money::USD(51),
uid: uniqid('NAT_'),
@@ -33,7 +33,7 @@ test('能够正常创建 Stripe 订单', function () {
test('能够正常获取 Stripe 配置信息', function () {
/** @var StripeRpc $service */
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.218:9611']);
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.246:9611']);
$configures = $service->getConfigurations();
expect($configures)