config.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace refill\xinruiheng_yd;
  3. use mtopcard;
  4. class config
  5. {
  6. //http://www.firstsup.net/showdoc
  7. const ORDER_URL = 'http://121.37.166.253:9086/onlinepay.do';
  8. const QUERY_URL= 'http://121.37.166.253:9086/searchpay.do';
  9. const BALANCE_URL = 'http://121.37.166.253:9086/searchbalance.do';
  10. const USER_ID= '10003003';
  11. const KEY = 'MXABT4Wct8iMJB4SBnSHpSQGp42SKQFr';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_xinruiheng_yd.php";
  13. const operator = [
  14. mtopcard\ChinaMobileCard => 'yd',
  15. mtopcard\ChinaUnicomCard => 'lt',
  16. mtopcard\ChinaTelecomCard => 'dx'
  17. ];
  18. const ERR_NOS = [
  19. '5001','5002','5003','5004','5005','5008','5009','5010','5011','5012','7001'
  20. ];
  21. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
  22. const ProductIdS = [
  23. mtopcard\ChinaMobileCard =>
  24. [
  25. 30 => '101687',
  26. 50 => '101688',
  27. 100 => '101689',
  28. 200 => '101690',
  29. 300 => '101691',
  30. 500 => '101692'
  31. ],
  32. mtopcard\ChinaUnicomCard =>
  33. [
  34. 30 => '101705',
  35. 50 => '101706',
  36. 100 => '101707',
  37. 200 => '101708'
  38. ],
  39. ];
  40. }