config.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace refill\ruizhi_tax;
  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. 5 => 20029,
  17. 10 => 20001,
  18. 20 => 20002,
  19. 30 => 20003,
  20. 50 => 20004,
  21. 100 => 20005,
  22. 200 => 20006,
  23. 300 => 20007,
  24. 500 => 20008
  25. ],
  26. mtopcard\ChinaUnicomCard => [
  27. 10 => 20009,
  28. 20 => 20010,
  29. 30 => 20011,
  30. 50 => 20012,
  31. 100 => 20013,
  32. 200 => 20014,
  33. 300 => 20015,
  34. 500 => 20016
  35. ],
  36. mtopcard\ChinaTelecomCard => [
  37. 5 => 20047,
  38. 10 => 20017,
  39. 20 => 20018,
  40. 30 => 20019,
  41. 50 => 20020,
  42. 100 => 20021,
  43. 200 => 20022,
  44. 300 => 20023,
  45. 500 => 20024
  46. ],
  47. ];
  48. const ERRCODES = ['101', '102', '103', '104', '105', '106', '107', '108', '109', '100', '112', '115', '116', '117', '118', '119', '120'];
  49. }