From c1a06c3728f7df2d31be218618a758d5109890b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Fri, 10 Jan 2025 10:34:53 +0800 Subject: [PATCH] Update examples.md --- docs/src/6.x/pay/examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/6.x/pay/examples.md b/docs/src/6.x/pay/examples.md index b5cc044af..a0d3a485c 100644 --- a/docs/src/6.x/pay/examples.md +++ b/docs/src/6.x/pay/examples.md @@ -173,7 +173,7 @@ print_r($response->toArray());
- 敏感信息加密 + 敏感信息加密 6.17.0+ > 官方文档: > 使用默认公钥 ID @@ -183,7 +183,7 @@ $utils = $app->getUtils(); $response = $app->getClient()->withSerialHeader()->postJson("v3/applyment4sub/applyment/", [ "business_code" => "12345678", 'contact_info' => [ - 'contact_name' => $utils->createRsaEncrypt('张三'), + 'contact_name' => $utils->encryptWithRsaPublicKey('张三'), //... ], //... @@ -199,7 +199,7 @@ $utils = $app->getUtils(); $response = $app->getClient()->withSerialHeader("PUB_KEY_ID_123456")->postJson("v3/applyment4sub/applyment/", [ "business_code" => "12345678", 'contact_info' => [ - 'contact_name' => $utils->createRsaEncrypt("张三","PUB_KEY_ID_123456"), + 'contact_name' => $utils->encryptWithRsaPublicKey("张三","PUB_KEY_ID_123456"), //... ], //...