config.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace refill\meixu_tax;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://120.79.190.232:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://120.79.190.232:8911/api/order/query';
  8. const BALANCE_URL = 'http://120.79.190.232:8911/api/account/balance';
  9. const APP_ID = 'Bb0uub7pDi';
  10. const APP_SECRET = 'QYuBIPscevkgrgZG';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_meixu_tax.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 10 => 101032,
  15. 20 => 101033,
  16. 30 => 101034,
  17. 50 => 101035,
  18. 100 => 101036,
  19. 200 => 101037,
  20. 300 => 101038,
  21. 500 => 101039,
  22. ],
  23. mtopcard\ChinaUnicomCard => [
  24. 10 => 101040,
  25. 20 => 101041,
  26. 30 => 101042,
  27. 50 => 101043,
  28. 100 => 101044,
  29. 200 => 101045,
  30. 300 => 101046,
  31. 500 => 101047,
  32. ],
  33. mtopcard\ChinaTelecomCard => [
  34. 10 => 101048,
  35. 20 => 101049,
  36. 30 => 101050,
  37. 50 => 101051,
  38. 100 => 101052,
  39. 200 => 101053,
  40. 300 => 101054,
  41. 500 => 101055,
  42. ]
  43. ];
  44. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  45. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  46. }