config.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace refill\shenzhou;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.98.242.182:10186/plat/api/old/submitorder';
  7. const QUERY_URL= 'http://47.98.242.182:10186/plat/api/old/queryorder';
  8. const BALANCE_URL = 'http://47.98.242.182:10186/plat/api/old/queryBalance';
  9. const USER_ID= '200237';
  10. const KEY = 'cbef2e3139854db5bf31a02e38dd211c';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_shenzhou.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 1,
  14. mtopcard\ChinaUnicomCard => 2,
  15. mtopcard\ChinaTelecomCard => 3
  16. ];
  17. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  18. const ERR_NOS = [
  19. 1000,1001,1003,1004,2001,2002,2003,2020,2021,1006,2030,3003
  20. ];
  21. const Product = [
  22. mtopcard\ChinaMobileCard => [
  23. 100 => 1000100,
  24. 200 => 1000200,
  25. 300 => 1000300,
  26. 500 => 1000500,
  27. ],
  28. mtopcard\ChinaUnicomCard => [
  29. 50 => 2000050,
  30. 100 => 2000100,
  31. 200 => 2000200,
  32. 300 => 2000300,
  33. ],
  34. mtopcard\ChinaTelecomCard => [
  35. 100 => 3000100,
  36. 200 => 3000200,
  37. 300 => 3000300,
  38. 500 => 3000500,
  39. ],
  40. ];
  41. }