Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BCloudOne authored Apr 15, 2020
1 parent 889231f commit 0b994ae
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@ try {
//传入RSA公私钥以及秘钥ID
$PaymentService = new PaymentService($publicKey, $privateKey, $accessId);
$address_info = $PaymentService->getNewWalletAddress($coin, $user_tag);
if(!$address_info || $address_info['code'] != 0){
$this->fail($address_info['code'], $address_info['message']);
}
} catch (BCloudException $e) {
//异常处理
$this->fail(ResponseService::ERROR_MISSING_PARAM, $e->getMessage());
}
//返回数据
$address_info = [
"address"=> "0x9787Bb1dfa0C9b74a0ECe2b116c2a61Efc46069b",
"address_tag"=> ""
'code' => 0,
'message' => '成功',
'data' => [
"address"=> "0x9787Bb1dfa0C9b74a0ECe2b116c2a61Efc46069b",
"address_tag"=> ""
]
];
```

Expand Down

0 comments on commit 0b994ae

Please sign in to comment.