config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 = 'sprTIuIsst';
  10. const APP_SECRET = 'xixZCAZjsMLjCjoR';
  11. // const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_guantu.php";
  12. const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
  13. const PRODUCT = [
  14. mtopcard\ChinaMobileCard => [
  15. 30 => 100001,
  16. 50 => 100002,
  17. 100 => 100003,
  18. 200 => 100004,
  19. ],
  20. mtopcard\ChinaUnicomCard => [
  21. 30 => 100009,
  22. 50 => 100010,
  23. 100 => 100011,
  24. 200 => 100012,
  25. ],
  26. mtopcard\ChinaTelecomCard => [
  27. 30 => 100013,
  28. 50 => 100014,
  29. 100 => 100015,
  30. 200 => 100016,
  31. ],
  32. ];
  33. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  34. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  35. }