config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace refill\kailinyu;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://120.76.52.71:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://120.76.52.71:8911/api/order/query';
  8. const BALANCE_URL = 'http://120.76.52.71:8911/api/account/balance';
  9. const APP_ID = 'f54dHy7DXI';
  10. const APP_SECRET = 'EgwaXJGtfZzTrQog';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_kailinyu.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 100000,
  15. 50 => 100001,
  16. 100 => 100002,
  17. 200 => 100003,
  18. 300 => 100004,
  19. 500 => 100005,
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 30 => 100006,
  23. 50 => 100007,
  24. 100 => 100008,
  25. 200 => 100009,
  26. 300 => 100010,
  27. 500 => 100011,
  28. ],
  29. mtopcard\ChinaTelecomCard => [
  30. 30 => 100012,
  31. 50 => 100013,
  32. 100 => 100014,
  33. 200 => 100015,
  34. 300 => 100016,
  35. 500 => 100017,
  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. }