config.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 = 'IvpY5p7PF2';
  10. const APP_SECRET = 'uptqPXHeSAqUeqpV';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruixunda.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 => 100007,
  21. 50 => 100008,
  22. 100 => 100009,
  23. 200 => 100010,
  24. 300 => 100011,
  25. 500 => 100012,
  26. ],
  27. mtopcard\ChinaTelecomCard => [
  28. 30 => 100013,
  29. 50 => 100014,
  30. 100 => 100015,
  31. 200 => 100016,
  32. 300 => 100017,
  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. }