config.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace refill\yamiao_high;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://120.25.147.74:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://120.25.147.74:8911/api/order/query';
  8. const BALANCE_URL = 'http://120.25.147.74:8911/api/account/balance';
  9. const APP_ID = 'piFzrSOCIy';
  10. const APP_SECRET = 'hKrUYACaqlTAsMFR';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yamiao_high.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 50 => 100017,
  15. 100 => 100018,
  16. 200 => 100019,
  17. 300 => 100027,
  18. 500 => 100028
  19. ],
  20. mtopcard\ChinaUnicomCard => [
  21. 50 => 100013,
  22. 100 => 100014,
  23. 200 => 100015,
  24. 300 => 100029,
  25. 500 => 100030
  26. ],
  27. mtopcard\ChinaTelecomCard => [
  28. 50 => 100021,
  29. 100 => 100022,
  30. 200 => 100023,
  31. 300 => 100031,
  32. 500 => 100032
  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. }