config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace refill\meihan;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.106.88.10:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://47.106.88.10:8911/api/order/query';
  8. const BALANCE_URL = 'http://47.106.88.10:8911/api/account/balance';
  9. const APP_ID = 'W33zTP9202';
  10. const APP_SECRET = 'kVOmthqgbBXcPfsY';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_meihan.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 10 => 100269,
  15. 20 => 100270,
  16. 50 => 100162,
  17. 100 => 100163,
  18. 200 => 100164,
  19. ],
  20. mtopcard\ChinaUnicomCard => [
  21. 30 => 100165,
  22. 50 => 100166,
  23. 100 => 100167,
  24. 200 => 100168,
  25. ],
  26. mtopcard\ChinaTelecomCard => [
  27. 10 => 100351,
  28. 20 => 100352,
  29. 30 => 100353,
  30. 50 => 100354,
  31. 100 => 100171,
  32. 200 => 100172,
  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. }