Skip to content

太坑了,没有 .toMap() 永远小写参数传过去 #6

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

Closed
flxxyz opened this issue Jun 6, 2022 · 1 comment
Closed

太坑了,没有 .toMap() 永远小写参数传过去 #6

flxxyz opened this issue Jun 6, 2022 · 1 comment

Comments

@flxxyz
Copy link

flxxyz commented Jun 6, 2022

body: Util.toMap(request),

传进入 { "videoId": "xxx" } 出来还是原样的,无限重复这个错误

Error: MissingVideoId: code: 400, VideoId is mandatory for this action. request id: 22CBADE2-0C99-5366-A371-0E385C4DB981

明明你个** requestGetPlayInfoRequest类型,可以 toMap(),真的日了狗了。。。

async getPlayInfoWithOptions(request: GetPlayInfoRequest, runtime: $Util.RuntimeOptions): Promise<GetPlayInfoResponse> {
  // ...
  let req = new $OpenApi.OpenApiRequest({
    body: request.toMap(),
  });
  // ...
}
@ZhoufangErqiangu
Copy link

太坑了,每个对象都得我自己写toMap是吧

不会写可以不写

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

3 participants