config.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace refill\douxun_copy;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://bapi.juhemall.cn/order.action';
  7. const QUERY_URL= 'http://bapi.juhemall.cn/queryOrder.action';
  8. const BALANCE_URL = 'http://bapi.juhemall.cn/balance.action';
  9. const custInteId = 'BJQDWTC';
  10. const KEY = 'JK-BJQDWTC';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_douxun.php";
  12. const ExtHeaders = ['Content-Type:text/xml; charset=utf-8'];
  13. const operator = [
  14. mtopcard\ChinaMobileCard => 1,
  15. mtopcard\ChinaUnicomCard => 2,
  16. mtopcard\ChinaTelecomCard => 3
  17. ];
  18. const PRODUCT = [
  19. mtopcard\ChinaMobileCard => [
  20. 10 => 400010,
  21. 20 => 400020,
  22. 30 => 400030,
  23. 50 => 400050,
  24. 100 => 400100,
  25. 200 => 400200,
  26. 300 => 400300,
  27. 500 => 400500
  28. ],
  29. mtopcard\ChinaUnicomCard => [
  30. 10 => 100010,
  31. 20 => 100020,
  32. 30 => 100030,
  33. 50 => 100050,
  34. 100 => 100100,
  35. 200 => 100200,
  36. 300 => 100300,
  37. 500 => 100500
  38. ],
  39. mtopcard\ChinaTelecomCard => [
  40. 10 => 400010,
  41. 20 => 400020,
  42. 30 => 400030,
  43. 50 => 400050,
  44. 100 => 400100,
  45. 200 => 400200,
  46. 300 => 400300,
  47. 500 => 400500
  48. ],
  49. ];
  50. }