mirror of
https://github.com/silenceper/wechat.git
synced 2026-03-01 00:35:26 +08:00
Compare commits
1 Commits
9bba0298b1
...
d969c8d72b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d969c8d72b |
@@ -79,9 +79,11 @@ func (basic *Basic) CheckNickName(nickname string) (*CheckNickNameResp, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res := &CheckNickNameResp{}
|
||||
err = util.DecodeWithError(data, res, "CheckNickName")
|
||||
return res, err
|
||||
result := &CheckNickNameResp{}
|
||||
if err := util.DecodeWithError(data, result, "wxverify/checkwxverifynickname"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// SetNickNameResp 设置小程序名称结果
|
||||
@@ -122,9 +124,11 @@ func (basic *Basic) SetNickNameFull(param *SetNickNameParam) (*SetNickNameResp,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res := &SetNickNameResp{}
|
||||
err = util.DecodeWithError(data, res, "SetNickName")
|
||||
return res, err
|
||||
result := &SetNickNameResp{}
|
||||
if err := util.DecodeWithError(data, result, "setnickname"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// SetSignatureResp 小程序功能介绍修改结果
|
||||
@@ -146,7 +150,7 @@ func (basic *Basic) SetSignature(signature string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return util.DecodeWithError(data, &SetSignatureResp{}, "SetSignature")
|
||||
return util.DecodeWithError(data, &SetSignatureResp{}, "account/modifysignature")
|
||||
}
|
||||
|
||||
// GetSearchStatusResp 查询小程序当前是否可被搜索
|
||||
@@ -167,9 +171,11 @@ func (basic *Basic) GetSearchStatus(signature string) (*GetSearchStatusResp, err
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res := &GetSearchStatusResp{}
|
||||
err = util.DecodeWithError(data, res, "GetSearchStatus")
|
||||
return res, err
|
||||
result := &GetSearchStatusResp{}
|
||||
if err := util.DecodeWithError(data, result, "getwxasearchstatus"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// SetSearchStatusResp 小程序是否可被搜索修改结果
|
||||
@@ -192,7 +198,7 @@ func (basic *Basic) SetSearchStatus(status int) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return util.DecodeWithError(data, &SetSearchStatusResp{}, "SetSearchStatus")
|
||||
return util.DecodeWithError(data, &SetSearchStatusResp{}, "changewxasearchstatus")
|
||||
}
|
||||
|
||||
// SetHeadImageResp 小程序头像修改结果
|
||||
@@ -233,5 +239,5 @@ func (basic *Basic) SetHeadImageFull(param *SetHeadImageParam) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return util.DecodeWithError(data, &SetHeadImageResp{}, "account/setheadimage")
|
||||
return util.DecodeWithError(data, &SetHeadImageResp{}, "account/modifyheadimage")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user