Skip to content

Commit

Permalink
Merge pull request #97 from honkiko/remove_dup_logs
Browse files Browse the repository at this point in the history
Remove dup logs
  • Loading branch information
royalrick authored Apr 6, 2023
2 parents 83df4e2 + cb63d18 commit 592ab14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ func (cli *Request) GetWithBody(url string) (*http.Response, error) {
}

func (cli *Request) Post(url string, params interface{}, response interface{}) error {
cli.logger().Info(context.Background(), "request url: %s", url)
cli.logger().Info(context.Background(), "request params: %+v", params)

resp, err := cli.PostWithBody(url, params)
if err != nil {
cli.logger().Error(context.Background(), "post error: %s", err)
Expand Down
2 changes: 2 additions & 0 deletions url_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ type URLLinkRequest struct {
ExpireInterval int64 `json:"expire_interval"`
// 非必填 云开发静态网站自定义 H5 配置参数,可配置中转的云开发 H5 页面。不填默认用官方 H5 页面
CloudBase *URLLinkCloudBase `json:"cloud_base"`
// 非必填 要打开的小程序版本。正式版为 "release",体验版为"trial",开发版为"develop"。默认值"release"
EnvVersion string `json:"env_version,omitempty"`
}

type URLLinkCloudBase struct {
Expand Down
2 changes: 2 additions & 0 deletions url_scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type SchemedInfo struct {
Path string `json:"path"`
// 通过scheme码进入小程序时的query,最大128个字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~
Query string `json:"query"`
// 非必填 要打开的小程序版本。正式版为 "release",体验版为"trial",开发版为"develop"。默认值"release"
EnvVersion string `json:"env_version,omitempty"`
}

type URLSchemeResponse struct {
Expand Down

0 comments on commit 592ab14

Please sign in to comment.