config.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace refill\ruixunda;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://120.76.172.131:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://120.76.172.131:8911/api/order/query';
  8. const BALANCE_URL = 'http://120.76.172.131:8911/api/account/balance';
  9. const APP_ID = 'kU6tn6YMjx';
  10. const APP_SECRET = 'UTzLpEOYVTPcCmwW';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruixunda.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 100001,
  15. 50 => 100002,
  16. 100 => 100003,
  17. 200 => 100004,
  18. 300 => 100005,
  19. 500 => 100006,
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 30 => 100007,
  23. 50 => 100008,
  24. 100 => 100009,
  25. 200 => 100010,
  26. 300 => 100011,
  27. 500 => 100012,
  28. ],
  29. mtopcard\ChinaTelecomCard => [
  30. 30 => 100013,
  31. 50 => 100014,
  32. 100 => 100015,
  33. 200 => 100016,
  34. 300 => 100017,
  35. ],
  36. ];
  37. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  38. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  39. }