This website works better with JavaScript.
Home
Explore
Help
Sign In
tgo
/
wechat
Watch
6
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
19
Wiki
Activity
Browse Source
修改获取公众号openid
master
v0.2.1
guzeng
2 years ago
parent
6e67c0d63b
commit
b389876023
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
)
if
data
.
Errcode
!=
0
{
return
data
,
errors
.
New
(
data
.
Errmsg
)
}
return
data
,
err
}
Write
Preview
Loading…
Cancel
Save