|
@ -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 |
|
|
} |
|
|
} |