Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BCloudOne authored Apr 7, 2020
1 parent b7946fd commit f5140f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ $ composer require bcloudone/sdk-php
use BCloudOne\PaymentService
try {
//传入从BCloud控制台申请的密钥
$PaymentService = new PaymentService($access_key, $secret_key);
$address_info = $PaymentService->getNewWalletAddress($coin, $uid);
//传入RSA公私钥以及秘钥ID
$PaymentService = new PaymentService($publicKey, $privateKey, $accessId);
$address_info = $PaymentService->getNewWalletAddress($coin, $user_tag);
} catch (BCloudException $e) {
//异常处理
$this->fail(ResponseService::ERROR_MISSING_PARAM, $e->getMessage());
Expand All @@ -34,3 +34,5 @@ $address_info = [
* BCloud官网:[https://www.bcloud.one/](https://www.bcloud.one/)
* BCloud接口文档:[https://docs.bcloud.one/](https://docs.bcloud.one/)



0 comments on commit f5140f9

Please sign in to comment.