config.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 => 100089,
  16. 100 => 100090,
  17. 200 => 100091,
  18. 300 => 100092,
  19. ],
  20. mtopcard\ChinaUnicomCard => [
  21. 1 => 100014,
  22. 2 => 100015,
  23. 3 => 100016,
  24. 4 => 100017,
  25. 5 => 100018,
  26. 6 => 100019,
  27. 7 => 100020,
  28. 8 => 100021,
  29. 9 => 100022,
  30. 10 => 100023,
  31. 20 => 100024,
  32. 30 => 100083,
  33. 50 => 100084,
  34. 100 => 100085,
  35. 200 => 100086,
  36. 300 => 100087,
  37. ],
  38. mtopcard\ChinaTelecomCard => [
  39. 10 => 100040,
  40. 20 => 100041,
  41. 30 => 100042,
  42. 50 => 100043,
  43. 100 => 100044,
  44. 200 => 100045,
  45. 300 => 100046,
  46. 500 => 100047,
  47. ],
  48. ];
  49. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  50. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  51. }