Region.php 692 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zhangdali
  5. * Date: 2018/3/12
  6. * Time: 下午5:44
  7. */
  8. namespace App\Libs\Push\XMPush;
  9. class Region {
  10. const China = 0; // 国内
  11. const Other = 1; // 国外其他地方,比如新加坡
  12. public static function getFeedbackHostList() {
  13. return array(
  14. Region::China => Constants::HOST_PRODUCTION_FEEDBACK,
  15. Region::Other => Constants::HOST_GLOBAL_PRODUCTION_FEEDBACK
  16. );
  17. }
  18. public static function getApiHostList() {
  19. return array(
  20. Region::China => Constants::HOST_PRODUCTION,
  21. Region::Other => Constants::HOST_GLOBAL_PRODUCTION
  22. );
  23. }
  24. }