config.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace refill\guantu;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://8.142.121.158:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://8.142.121.158:8911/api/order/query';
  8. const BALANCE_URL = 'http://8.142.121.158:8911/api/account/balance';
  9. const APP_ID = 't7gmui2D3w';
  10. const APP_SECRET = 'wDuesIDEmqheNPoC';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_guantu.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 100069,
  15. 50 => 100070,
  16. 100 => 100071,
  17. 200 => 100072,
  18. ],
  19. mtopcard\ChinaUnicomCard => [
  20. 30 => 100009,
  21. 50 => 100010,
  22. 100 => 100011,
  23. 200 => 100012,
  24. ],
  25. mtopcard\ChinaTelecomCard => [
  26. 30 => 100013,
  27. 50 => 100014,
  28. 100 => 100015,
  29. 200 => 100016,
  30. ],
  31. ];
  32. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  33. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  34. }