config.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. 50 => 100162,
  15. 100 => 100163,
  16. 200 => 100164,
  17. ],
  18. mtopcard\ChinaUnicomCard => [
  19. 30 => 100165,
  20. 50 => 100166,
  21. 100 => 100167,
  22. 200 => 100168,
  23. ],
  24. mtopcard\ChinaTelecomCard => [
  25. 50 => 100170,
  26. 100 => 100171,
  27. 200 => 100172,
  28. ],
  29. ];
  30. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  31. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  32. }