config.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace refill\yamiao_normal;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://120.55.90.36:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://120.55.90.36:8911/api/order/query';
  8. const BALANCE_URL = 'http://120.55.90.36:8911/api/account/balance';
  9. const APP_ID = 'RvQe0E9q3S';
  10. const APP_SECRET = 'OfVpRCIUBQGYSQUL';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yamiao_normal.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 30 => 100007,
  15. 50 => 100008,
  16. 100 => 100009,
  17. 200 => 100010,
  18. 300 => 100011,
  19. 500 => 100012
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 30 => 100013,
  23. 50 => 100014,
  24. 100 => 100015,
  25. 200 => 100016,
  26. 300 => 100017,
  27. 500 => 100018
  28. ],
  29. mtopcard\ChinaTelecomCard => [
  30. 30 => 100019,
  31. 50 => 100020,
  32. 100 => 100021,
  33. 200 => 100022,
  34. 300 => 100023,
  35. 500 => 100024
  36. ],
  37. ];
  38. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  39. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  40. }