Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listTransactions修改 #1

Open
AminBATE opened this issue Jun 2, 2018 · 1 comment
Open

listTransactions修改 #1

AminBATE opened this issue Jun 2, 2018 · 1 comment

Comments

@AminBATE
Copy link

AminBATE commented Jun 2, 2018

public function listTransactions($tx_id = "", $account_id = "", $detail = false)
{
    $data = [];
    if(empty($tx_id)) $data = ['tx_id' => $tx_id, 'detail' => $detail];
    if(empty($account_id)) $data = ['account_id' => $account_id, 'detail' => $detail];
    return $this->httpClient->post($this->url. '/list-transactions', $data);
}

是不是要改为
public function listTransactions($tx_id = "", $account_id = "", $detail = false)
{
$data = [];
if(!empty($tx_id)) $data = ['tx_id' => $tx_id, 'detail' => $detail];
if(empty($account_id)) $data = ['account_id' => $account_id, 'detail' => $detail];
return $this->httpClient->post($this->url. '/list-transactions', $data);
}

还有tx_id 参数需要改成id (这个应该是原接口的问题)

@lxlxw
Copy link
Collaborator

lxlxw commented Jun 6, 2018

@AminBATE 看了下原接口,确实需要把tx_id更新成id~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants