config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. 50 => 20004,
  17. 100 => 20005,
  18. 200 => 20006,
  19. 300 => 20007,
  20. 500 => 20008
  21. ],
  22. mtopcard\ChinaUnicomCard => [
  23. 50 => 20012,
  24. 100 => 20013,
  25. 200 => 20014,
  26. 300 => 20015,
  27. 500 => 20016
  28. ],
  29. mtopcard\ChinaTelecomCard => [
  30. 50 => 20020,
  31. 100 => 20021,
  32. 200 => 20022,
  33. 300 => 20023,
  34. 500 => 20024
  35. ],
  36. ];
  37. const ERRCODES = ['101', '102', '103', '104', '105', '106', '107', '108', '109', '100', '112', '115', '116', '117', '118', '119', '120'];
  38. }