|
@@ -11,7 +11,7 @@ try {
|
|
|
$info = $weixin_public->getAllInfo($code);
|
|
$info = $weixin_public->getAllInfo($code);
|
|
|
|
|
|
|
|
if (empty($info['openid'])) {
|
|
if (empty($info['openid'])) {
|
|
|
- echo action_msg($info['errmsg'], 1);
|
|
|
|
|
|
|
+ echo action_msg($info['errmsg'], $info['errcode']);
|
|
|
exit;
|
|
exit;
|
|
|
} else {
|
|
} else {
|
|
|
$attr = Reader::getInfoByOpenId($info['openid']);
|
|
$attr = Reader::getInfoByOpenId($info['openid']);
|