config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace refill\ruixunda_lt;
  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 = 'uufSSr9QWH';
  10. const APP_SECRET = 'mOXpDKsEwRUmsKgO';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruixunda_lt.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 100116,
  15. 50 => 100117,
  16. 100 => 100118,
  17. 200 => 100119,
  18. ],
  19. mtopcard\ChinaUnicomCard => [
  20. 30 => 100086,
  21. 50 => 100087,
  22. 100 => 100083,
  23. 200 => 100084,
  24. 300 => 100085,
  25. 500 => 100121,
  26. ],
  27. //超面值电信
  28. mtopcard\ChinaTelecomCard => [
  29. 30 => 100111,
  30. 50 => 100112,
  31. 100 => 100113,
  32. 200 => 100114,
  33. ]
  34. ];
  35. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  36. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  37. }