config.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace refill\ruixunda;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.98.117.207:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://47.98.117.207:8911/api/order/query';
  8. const BALANCE_URL = 'http://47.98.117.207:8911/api/account/balance';
  9. const APP_ID = 'HopCzvajlL';
  10. const APP_SECRET = 'iLDpqQtdzhOaaNms';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruixunda.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 7,
  15. 50 => 8,
  16. 100 => 9,
  17. 200 => 10,
  18. 300 => 11,
  19. 500 => 12,
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 30 => 13,
  23. 50 => 14,
  24. 100 => 15,
  25. 200 => 16,
  26. 300 => 17,
  27. 500 => 18,
  28. ],
  29. mtopcard\ChinaTelecomCard => [
  30. 30 => 19,
  31. 50 => 20,
  32. 100 => 21,
  33. 200 => 22,
  34. 300 => 23,
  35. 500 => 24,
  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. }