config.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace refill\meixu;
  3. use mtopcard;
  4. class config
  5. {
  6. //https://docs.qq.com/doc/DR2lpVUdGY3JEU25k
  7. const ORDER_URL = 'http://123.57.216.254:9086/onlinepay.do';
  8. const QUERY_URL= 'http://123.57.216.254:9086/searchpay.do';
  9. const BALANCE_URL = 'http://123.57.216.254:9086/searchbalance.do';
  10. const USER_ID= '10003105';
  11. const KEY = 'XYbeNKj4HGfkbZCM4mz2bE33aRHrQ6r2';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_meixu.php";
  13. const operator = [
  14. mtopcard\ChinaMobileCard => 'yd',
  15. mtopcard\ChinaUnicomCard => 'lt',
  16. mtopcard\ChinaTelecomCard => 'dx'
  17. ];
  18. const ERR_NOS = [
  19. '5001','5002','5003','5004','5005','5008','5009','5010','5011','5012'
  20. ];
  21. const ProductId = [
  22. mtopcard\ChinaMobileCard => [
  23. 10 => 100001,
  24. 20 => 100002,
  25. 30 => 100003,
  26. 50 => 100004,
  27. 100 => 100005,
  28. 200 => 100006,
  29. 300 => 100007,
  30. 500 => 100008,
  31. ],
  32. mtopcard\ChinaUnicomCard => [
  33. 10 => 30000001581,
  34. 20 => 30000001582,
  35. 30 => 30000001583,
  36. 50 => 100012,
  37. 100 => 100013,
  38. 200 => 100014,
  39. 300 => 100015,
  40. 500 => 30000001588,
  41. ],
  42. mtopcard\ChinaTelecomCard => [
  43. 10 => 100017,
  44. 20 => 100018,
  45. 30 => 100019,
  46. 50 => 100020,
  47. 100 => 100021,
  48. 200 => 100022,
  49. 300 => 100023,
  50. 500 => 100024,
  51. ],
  52. ];
  53. }