config.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace refill\ruizhi_tax_copy;
  3. use mtopcard;
  4. class config
  5. {
  6. //回调地址需上游配置
  7. const ORDER_URL = 'http://47.104.129.40:80/recharge/buy.do';
  8. const QUERY_URL = 'http://47.104.129.40:80/recharge/query.do';
  9. const BALANCE_URL = 'http://47.104.129.40:80/user/balance.do';
  10. const USER_ID = '10713';
  11. const KEY = '8F3F96FD1A6C';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruizhi_tax.php";
  13. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  14. const PRODUCT = [
  15. mtopcard\ChinaMobileCard => [
  16. 10 => 20001,
  17. 20 => 20002,
  18. 30 => 20003,
  19. 50 => 20004,
  20. 100 => 20005,
  21. 200 => 20006,
  22. 300 => 20007,
  23. 500 => 20008
  24. ],
  25. mtopcard\ChinaUnicomCard => [
  26. 10 => 20009,
  27. 20 => 20010,
  28. 30 => 20011,
  29. 50 => 20012,
  30. 100 => 20013,
  31. 200 => 20014,
  32. 300 => 20015,
  33. 500 => 20016
  34. ],
  35. mtopcard\ChinaTelecomCard => [
  36. 10 => 20017,
  37. 20 => 20018,
  38. 30 => 20019,
  39. 50 => 20020,
  40. 100 => 20021,
  41. 200 => 20022,
  42. 300 => 20023,
  43. 500 => 20024
  44. ],
  45. ];
  46. const ERRCODES = ['101', '102', '103', '104', '105', '106', '107', '108', '109', '100', '112', '115', '116', '117', '118', '119', '120'];
  47. }