updateuser

This commit is contained in:
苏尹岚
2020-11-09 09:40:07 +08:00
parent 6b9eb80be9
commit bfc99196a8
2 changed files with 11 additions and 1 deletions

View File

@@ -106,7 +106,6 @@ func signParam(signType string, params map[string]interface{}) (sig string) {
sort.Sort(sort.StringSlice(valueList))
valueList = append(valueList, fmt.Sprintf("key=%s", globals.WxpayAppKey))
sig = strings.Join(valueList, "&")
fmt.Println("test111111111111111111111111111111111111111111111", sig)
var binSig []byte
if signType == sigTypeSha256 {
mac := hmac.New(sha256.New, []byte(globals.WxpayAppKey))

View File

@@ -280,3 +280,14 @@ func (c *User2Controller) InvestMember() {
return retVal, errCode, err
})
}
// @Title 修改用户信息
// @Description 修改用户信息
// @Param token header string true "认证token"
// @Param payload formData string true "user payload"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateUser [put]
func (c *User2Controller) UpdateUser() {
}