config.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace refill\siyicheng;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://121.41.113.253:9666/api/hfplat/info/submit';
  7. const QUERY_URL = 'http://121.41.113.253:9666/api/info/query';
  8. const BALANCE_URL = 'http://121.41.113.253:9666/api/wallet/balance';
  9. const APP_ID = 'LzJaYPfI3J';
  10. const APP_SECRET = 'WcvWjTRFSOeHhvXg';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_siyicheng.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 50 => 100211,
  15. 100 => 100212,
  16. 200 => 100213,
  17. ],
  18. mtopcard\ChinaUnicomCard => [
  19. 30 => 100218,
  20. 50 => 100219,
  21. 100 => 100220,
  22. 200 => 100221,
  23. ],
  24. mtopcard\ChinaTelecomCard => [
  25. 30 => 100214,
  26. 50 => 100215,
  27. 100 => 100216,
  28. 200 => 100217,
  29. ]
  30. ];
  31. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  32. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  33. }