config.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace refill\zhongst_mix;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://112.124.58.225:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://112.124.58.225:8911/api/order/query';
  8. const BALANCE_URL = 'http://112.124.58.225:8911/api/account/balance';
  9. const APP_ID = 'aKz6PN5XIw';
  10. const APP_SECRET = 'iVVbvDkqlVMhSjev';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_zhongst_mix.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 50 => 100208,
  15. 100 => 100209,
  16. 200 => 100210,
  17. 300 => 100211,
  18. 500 => 100212
  19. ],
  20. mtopcard\ChinaUnicomCard => [
  21. 50 => 100214,
  22. 100 => 100215,
  23. 200 => 100216,
  24. 300 => 100217,
  25. 500 => 100218
  26. ],
  27. mtopcard\ChinaTelecomCard => [
  28. 30 => 100219,
  29. 50 => 100220,
  30. 100 => 100221,
  31. 200 => 100222,
  32. 300 => 100223,
  33. 500 => 100224
  34. ],
  35. ];
  36. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  37. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  38. }