config.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace refill\baixuan;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://119.23.174.34:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://119.23.174.34:8911/api/order/query';
  8. const BALANCE_URL = 'http://119.23.174.34:8911/api/account/balance';
  9. const APP_ID = 'Hs2pvfcPTK';
  10. const APP_SECRET = 'WYUvuzPpFNnBfQZm';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_baixuan.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 100067,
  15. 50 => 100025,
  16. 100 => 100026,
  17. 200 => 100027,
  18. 300 => 100028,
  19. 500 => 100029,
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 30 => 100086,
  23. 50 => 100087,
  24. 100 => 100088,
  25. 200 => 100090,
  26. 300 => 100091,
  27. 500 => 100089,
  28. ],
  29. mtopcard\ChinaTelecomCard => [
  30. 30 => 100062,
  31. 50 => 100022,
  32. 100 => 100023,
  33. 200 => 100024,
  34. 300 => 100084,
  35. 500 => 100085,
  36. ],
  37. ];
  38. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  39. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  40. }