|
|
@@ -8,11 +8,13 @@
|
|
|
try {
|
|
|
|
|
|
$weixin_public = new weixin_public(APPID, APPSECRET, APPURI);
|
|
|
- $weixin_public->redirectWithCode();
|
|
|
+ $redirectUrl = $weixin_public->redirectWithCode();
|
|
|
+ echo action_msg($redirectUrl, 200);
|
|
|
exit;
|
|
|
|
|
|
} catch (MyException $e) {
|
|
|
echo action_msg($e->getMessage(), $e->getCode());
|
|
|
+ exit;
|
|
|
}
|
|
|
|
|
|
?>
|