callback($code); if(empty($user_info)) { Log::record("微信取到的信息为空",Log::DEBUG); } else { wechat_helper::set_userinfo($user_info); $origin_url = wechat_helper::get_origin_url(); wechat_helper::clear_origin_url(); Log::record("origin_url={$origin_url}",Log::DEBUG); if(!empty($origin_url)) { $html = " 跳转中 "; echo $html; } } } else { $host = urldecode($state); $url = "{$host}/mobile/wxauthor.php?code={$code}"; Log::record("redirect url={$url}",Log::DEBUG); $html = " 跳转中 "; echo $html; }