config.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace refill\ruizhi_third;
  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 = '85378';
  11. const KEY = '34DA051FFD61';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruizhi_third.php";
  13. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  14. const PRODUCT = [
  15. mtopcard\ChinaMobileCard => [
  16. 30 => 20003,
  17. 50 => 20004,
  18. 100 => 20005,
  19. 200 => 20006,
  20. 300 => 20007,
  21. 500 => 20008
  22. ],
  23. mtopcard\ChinaUnicomCard => [
  24. 30 => 20011,
  25. 50 => 20012,
  26. 100 => 20013,
  27. 200 => 20014,
  28. 300 => 20015,
  29. ],
  30. mtopcard\ChinaTelecomCard => [
  31. 30 => 20019,
  32. 50 => 20020,
  33. 100 => 20021,
  34. 200 => 20022,
  35. 300 => 20023,
  36. 500 => 20024
  37. ],
  38. ];
  39. const ERRCODES = ['101', '102', '103', '104', '105', '106', '107', '108', '109', '100', '112', '115', '116', '117', '118', '119', '120'];
  40. }