Browse Source

修改获取公众号openid

master v0.2.1
guzeng 2 years ago
parent
commit
b389876023
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      openid.go

+ 4
- 0
openid.go View File

@ -89,5 +89,9 @@ func GetMpOpenid(appid, secret, code string) (MpOpenIdData, error) {
err = json.Unmarshal(data_byte, &data) err = json.Unmarshal(data_byte, &data)
if data.Errcode != 0 {
return data, errors.New(data.Errmsg)
}
return data, err return data, err
} }

Loading…
Cancel
Save