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

课程库 课程参数 实体与文档不符 #17

Closed
a878851497 opened this issue Jul 12, 2023 · 0 comments · Fixed by #18
Closed

课程库 课程参数 实体与文档不符 #17

a878851497 opened this issue Jul 12, 2023 · 0 comments · Fixed by #18
Labels
bug Something isn't working

Comments

@a878851497
Copy link
Contributor

a878851497 commented Jul 12, 2023


关于问题的简单描述

知识库-课程库-接口 添加课程修改课程 中的 课程参数 实体类型声明与文档不符

接口文档地址
https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product/product-add
https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product/product-modify

字段:
course_params--课程参数

与问题相关的源代码

SDK中的实体类声明
https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance/blob/f0881374f9570631355621bc2543bb46baca8805/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiAddRequest.cs#L295C28-L295C28

          public class CourseInfo
          {
                [JsonProperty("teacher_introduction")]
                [JsonPropertyName("teacher_introduction")]
                public string? TeacherIntroduction { get; set; }
          }

官方示例中

"course_params": {
            "teacher_id": "I_7253992734527160376",
            "course_num": 1,
            "refund_label": {
                "day_before_use_info": {
                    "day": 7
                },
                "type": 1
            },
            "use_label": {
                "valid_date": "2100-12-31"
            },
            "start_timestamp": 1603376542000,
            "end_timestamp": 2034528542000
        }

异常堆栈或异常原因

请在此填写你遇到的问题抛出错误时的异常消息和堆栈跟踪(如果有的话)。


发生问题的运行环境

请在此填写以下几项内容:

  1. 操作系统:请填写发生问题的操作系统环境信息(如:Windows Server 2012 R2)
  2. .NET 版本:请填写发生问题的 .NET 环境信息(如:.NET Framework 4.7.2 / .NET 5.0)
  3. 使用的模块及版本:请填写发生问题的模块信息(如:SKIT.FlurlHttpClient.ByteDance.TikTok 1.0.0)
  4. 其他环境信息。

补充说明

请在此填写任何其他可以定位问题的信息。

@a878851497 a878851497 added the bug Something isn't working label Jul 12, 2023
@fudiwei fudiwei added the todo label Jul 14, 2023
@fudiwei fudiwei linked a pull request Jul 14, 2023 that will close this issue
@fudiwei fudiwei removed the todo label Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants