config.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace refill\weixue;
  3. use mtopcard;
  4. class config
  5. {
  6. //https://www.showdoc.com.cn/AQL666666/
  7. const ORDER_URL = 'http://121.36.216.15:9086/onlinepay.do';
  8. const QUERY_URL= 'http://121.36.216.15:9086/searchpay.do';
  9. const BALANCE_URL = 'http://121.36.216.15:9086/searchbalance.do';
  10. const USER_ID= '10002723';
  11. const KEY = 'CpbwtEEGWGQWjtRGkGmRJjzQ4ZNErnch';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_weixue.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'
  20. ];
  21. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
  22. const ProductIdS = [
  23. mtopcard\ChinaMobileCard =>
  24. [
  25. 10 => '101685',
  26. 20 => '101686',
  27. 30 => '101687',
  28. 50 => '101688',
  29. 100 => '101689',
  30. 200 => '101690',
  31. ],
  32. mtopcard\ChinaUnicomCard =>
  33. [
  34. 10 => '101703',
  35. 20 => '101704',
  36. 30 => '101705',
  37. 50 => '101706',
  38. 100 => '101707',
  39. 200 => '101708',
  40. 300 => '101709',
  41. 500 => '101710'
  42. ],
  43. mtopcard\ChinaTelecomCard =>
  44. [
  45. 10 => '101721',
  46. 20 => '101722',
  47. 30 => '101723',
  48. 50 => '101724',
  49. 100 => '101725',
  50. 200 => '101726',
  51. ],
  52. ];
  53. }