Last active
January 20, 2021 02:18
-
-
Save bolechen/6c4ee78afccf55d09a225992647adafb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function is_weixin() { | |
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) { | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Laravel 下更优雅的写法
https://gist.github.com/bolechen/22aa3ce56522bcf34021d813e3985cb2