标签:cti ESS false func $_server gen agent rom serve
if (!Func::isWx()) {
exit('请在微信客户端打开链接');
}
// 判断是否是微信
public static function isWx() {
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) {
return true;
}
return false;
}
这样就保证了环境的正确
标签:cti ESS false func $_server gen agent rom serve
原文地址:https://www.cnblogs.com/jiqing9006/p/11022629.html