config.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 => 100083,
  34. 50 => 100084,
  35. 100 => 100085,
  36. 200 => 100086,
  37. 300 => 100087
  38. ],
  39. mtopcard\ChinaTelecomCard => [
  40. 10 => 100040,
  41. 20 => 100041,
  42. 30 => 100042,
  43. 50 => 100043,
  44. 100 => 100044,
  45. 200 => 100045,
  46. 300 => 100046,
  47. 500 => 100047
  48. ],
  49. ];
  50. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  51. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  52. }