config.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace refill\sialan;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://39.98.234.165/api/do';
  7. const QUERY_URL = 'http://39.98.234.165/api/queryorder';
  8. const BALANCE_URL = 'http://39.98.234.165/api/querybalance';
  9. const CPID = '39780';
  10. const CPKEY = '966cbd556c90ae75d';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_sialan.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 1,
  14. mtopcard\ChinaUnicomCard => 2,
  15. mtopcard\ChinaTelecomCard => 3
  16. ];
  17. const product_id = [
  18. mtopcard\ChinaMobileCard => [
  19. 10 => 20001,
  20. 20 => 20002,
  21. 30 => 20003,
  22. 50 => 20004,
  23. 100 => 20005,
  24. 200 => 20006,
  25. 300 => 20007,
  26. 500 => 20008,
  27. ],
  28. mtopcard\ChinaUnicomCard => [
  29. 10 => 20009,
  30. 20 => 20010,
  31. 30 => 20011,
  32. 50 => 20012,
  33. 100 => 20013,
  34. 200 => 20014,
  35. 300 => 20015,
  36. 500 => 20016,
  37. ],
  38. mtopcard\ChinaTelecomCard => [
  39. 10 => 20017,
  40. 20 => 20018,
  41. 30 => 20019,
  42. 50 => 20020,
  43. 100 => 20021,
  44. 200 => 20022,
  45. 300 => 20023,
  46. 500 => 20024,
  47. ]
  48. ];
  49. const ERR_NOS = [
  50. -10001,-10002,-10003,-10004,-10013,-10005,-10006,-10007,-10008,-10009,-10011,-10012,-10015,-10016
  51. ];
  52. }