- 修复请求门面的判断微信和微信小程序环境函数名错误问题

v6
Chaim 4 years ago
parent 58999ddc24
commit 6940c4af03

@ -1,3 +1,6 @@
## v6.0.93 / 2020-07-20
-修复请求门面的判断微信和微信小程序环境函数名错误问题
## v6.0.92 / 2020-07-18
- 优化Api加密解密

@ -28,7 +28,7 @@ use think\db\exception\ModelNotFoundException;
/**
* 定义当前版本
*/
const VERSION = '6.0.92';
const VERSION = '6.0.93';
if (!function_exists('get_ip_info')) {
/**

@ -39,8 +39,8 @@ use think\Facade;
* @method static bool isDelete() 判断是否为DELETE方式
* @method static bool isAjax() 判断是否为Ajax方式
* @method static bool isMobile() 判断是否为移动端访问
* @method static bool isWeXin() 判断是否微信内置浏览器访问
* @method static bool isWeXinMp() 判断是否为微信小程序访问
* @method static bool isWeiXin() 判断是否微信内置浏览器访问
* @method static bool isWeiXinMp() 判断是否为微信小程序访问
* @method static bool isAliPay() 判断是否支付宝内置浏览器访问
* @method static bool isQQ() 判断是否QQ内置浏览器访问
* @method static bool isQQBrowser() 判断是否QQ浏览器访问

@ -148,7 +148,7 @@ class Requests
* 判断是否微信内置浏览器访问
* @return bool
*/
public function isWeXin(): bool
public function isWeiXin(): bool
{
if (strpos(request()->server('HTTP_USER_AGENT'), 'MicroMessenger') !== false) {
return true;
@ -160,7 +160,7 @@ class Requests
* 判断是否为微信小程序访问
* @return bool
*/
public function isWeXinMp(): bool
public function isWeiXinMp(): bool
{
if (strpos(request()->server('HTTP_USER_AGENT'), 'miniProgram') !== false) {
return true;

Loading…
Cancel
Save