config.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace refill\ruizhi;
  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 = '65920';
  11. const KEY = '8AB0A66B1C62';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruizhi.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. 30 => 20011,
  27. 50 => 20012,
  28. 100 => 20013,
  29. 200 => 20014,
  30. 300 => 20015,
  31. ],
  32. mtopcard\ChinaTelecomCard => [
  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. }