RedisTest.php 810 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Bear
  5. * Date: 2019/1/3
  6. * Time: 下午2:55
  7. */
  8. use app\common\library\Ip;
  9. use app\common\library\Redis;
  10. use app\common\service\LogService;
  11. use app\main\constants\CacheConstants;
  12. use app\main\service\ActivityService;
  13. use app\main\service\PopupService;
  14. use app\main\service\ToutiaoNotifyService;
  15. use app\main\service\UserService;
  16. use fast\Random;
  17. class RedisTest extends TestInit
  18. {
  19. public function testStart()
  20. {
  21. $agent = new \Jenssegers\Agent\Agent();
  22. $agent->setUserAgent('Mozilla/5.0 (Linux; U; Android 10; zh-CN; PCT-AL10 Build/HUAWEIPCT-AL10) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 UCBrowser/13.0.5.1085 Mobile Safari/537.36');
  23. var_dump($agent->platform(),$agent->version($agent->platform()));
  24. }
  25. }