We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
错误 :Get account history error: {"status":"error","err-code":"validation-format-error","err-msg":"Format Error: account-id.","data":null} ``
var ( AccessKey = "xxx-xxx-xxx-xxx" SecretKey = "xxx-xxxx-xxxx-xxxx" accountId int64 ) /** 财务流水 */ func (controller *Index) GetAccountHistory(r *ghttp.Request) { client := new(client.AccountClient).Init(AccessKey, SecretKey, config.Host) //if accountId == 0 { info, err := client.GetAccountInfo() applogger.Info("Get account ledger error: ", info) if err == nil { for _, accountInfo := range info { if accountInfo.Type == "spot" { accountId = (accountInfo.Id) } } } else { base.Error(r, "Get account ledger error"+err.Error()) return } //} fmt.Println(accountId) getAccountHistoryOptionalRequest := account.GetAccountHistoryOptionalRequest{} resp, err := client.GetAccountHistory(string((accountId)), getAccountHistoryOptionalRequest) if err != nil { applogger.Error("Get account history error: %s", err) base.Error(r, "Get account history error"+err.Error()) return } else { applogger.Info("Get account history, count=%d", len(resp)) base.Succ(r, g.Map{"list": resp, "form": nil}) } return }`
The text was updated successfully, but these errors were encountered:
@isaacwu666 传入的具体的accoun-id是什么呢?
Sorry, something went wrong.
我也想知道accoutid是啥, 总是说 &{error invalid-account-id Invalid account id.}
No branches or pull requests
错误 :Get account history error: {"status":"error","err-code":"validation-format-error","err-msg":"Format Error: account-id.","data":null}
``
The text was updated successfully, but these errors were encountered: