直接复制,打赏
public function wxAuthLogin(){
if(Session::get('openid_') && Session::get('userid_')){
//if(Cache::get('openid_') && Cache::get('userid_')){
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' :'http://';
$domain = $_SERVER['SERVER_NAME'];
$openid_ = Session::get('openid_');
$userid_ = Session::get('userid_');
header("Location: ".$http_type.$domain."/login/login/login?id&