Gather.php 466 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: chengxun
  5. * Date: 2017/11/10
  6. * Time: 15:21
  7. */
  8. namespace common;
  9. use submit\Submit;
  10. use think\Request;
  11. class Gather
  12. {
  13. public static function add(){
  14. $data = [
  15. 'domain' => Request::instance()->domain(),
  16. 'host' => Request::instance()->host(),
  17. 'ip' => Request::instance()->ip(),
  18. ];
  19. Submit::curl('http://gather.tossboy.cn/',$data,1);
  20. }
  21. }