fn_is_wap_site) || !$user_tag['used_mobile']) { if (defined('ENVIRONMENT') && ENVIRONMENT == 'development') { echo '无手机站访问权限,程序中止!'; } else { http_response_code(502); } exit(); } $smarty->assign('home_index', 1); if ($signPackage) { $tmpWxPic = $tmpShareUrl = ''; $tmpShareUrl = str_replace(array('http://', $user_host), '', $home_link); if ($wap_user_info['share_pic']) { $tmpWxPic = $wap_user_info['share_pic']; } else { $tmpWxPic = '//img.ev123.com/pic/nopic/100_80.jpg'; } $tmpWxPic = Job_Pic::format( [ 'type' => 20, 'pic' => $tmpWxPic, 'width' => 400, 'height' => 400, 'field' => 'showPic' ] ); $wxShareInfo = array( 'title' => $wap_user_info['web_title'], 'brief' => addslashes(str_replace(array("\r\n", "\r", "\n", " "), '', $wap_user_info['web_describe'])), 'url' => 'http://' . $user_host . $tmpShareUrl, 'img' => $tmpWxPic, ); //开启分销且是登录状态,分享链接中携带分销参数 if ($wxShareInfo['url']) { $wxShareInfo['url'] = Model_Fenxiao::getUrlParam($wxShareInfo['url']); } $smarty->assign('wxShareInfo', $wxShareInfo); } if (!DESIGN && !$zz_userid && Job_Website::rule10($user_id)) { Util::redirect("/UD/feimirsku/Login.php?username={$user_name}&wap=1", 1); } $smarty->display('wap/index_min.tpl');