config.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace refill\zhongst;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://112.124.58.225:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://112.124.58.225:8911/api/order/query';
  8. const BALANCE_URL = 'http://112.124.58.225:8911/api/account/balance';
  9. const APP_ID = 'Jab1HfumVk';
  10. const APP_SECRET = 'eIpGtPfBdSfqAYSv';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/refill_zhongst.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 100008,
  15. 50 => 100009,
  16. 100 => 100010,
  17. 200 => 100011,
  18. 300 => 100012,
  19. 500 => 100013
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 5 => 100018,
  23. 6 => 100019,
  24. 7 => 100020,
  25. 8 => 100021,
  26. 9 => 100022,
  27. 10 => 100023,
  28. 20 => 100024,
  29. 30 => 100025,
  30. 50 => 100084,
  31. 100 => 100085,
  32. 200 => 100086,
  33. 300 => 100087
  34. ],
  35. mtopcard\ChinaTelecomCard => [
  36. 5 => 100035,
  37. 6 => 100036,
  38. 7 => 100037,
  39. 8 => 100038,
  40. 9 => 100039,
  41. 10 => 100179,
  42. 20 => 100180,
  43. 30 => 100181,
  44. 50 => 100043,
  45. 100 => 100183,
  46. 200 => 100184,
  47. 300 => 100185,
  48. 500 => 100186
  49. ],
  50. ];
  51. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  52. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  53. }