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 => 100088,
  15. 50 => 100009,
  16. 100 => 100010,
  17. 200 => 100011,
  18. 300 => 100012,
  19. 500 => 100013
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 1 => 100014,
  23. 2 => 100015,
  24. 3 => 100016,
  25. 4 => 100017,
  26. 5 => 100018,
  27. 6 => 100019,
  28. 7 => 100020,
  29. 8 => 100021,
  30. 9 => 100022,
  31. 10 => 100023,
  32. 20 => 100024,
  33. 30 => 100025,
  34. 50 => 100026,
  35. 100 => 100027,
  36. 200 => 100028,
  37. 300 => 100029,
  38. 500 => 100030
  39. ],
  40. mtopcard\ChinaTelecomCard => [
  41. 10 => 100040,
  42. 20 => 100041,
  43. 30 => 100042,
  44. 50 => 100043,
  45. 100 => 100044,
  46. 200 => 100045,
  47. 300 => 100046,
  48. 500 => 100047
  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. }