config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace refill\kainuo;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://121.40.244.114:10186/plat/api/old/submitorder';
  7. const QUERY_URL= 'http://121.40.244.114:10186/plat/api/old/queryorder';
  8. const BALANCE_URL = 'http://121.40.244.114:10186/plat/api/old/queryBalance';
  9. const USER_ID= '200050';
  10. const KEY = '98972bb54b004215b667399a4352b9a1';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_kainuo.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 1,
  14. mtopcard\ChinaUnicomCard => 2,
  15. mtopcard\ChinaTelecomCard => 3
  16. ];
  17. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  18. const ERR_NOS = [
  19. 1000,1001,1003,1004,2001,2002,2003,2020,2021,1006,2030,3003
  20. ];
  21. const Product = [
  22. mtopcard\ChinaMobileCard => [
  23. 50 => 1000050,
  24. 100 => 1000100,
  25. 200 => 1000200,
  26. ],
  27. mtopcard\ChinaUnicomCard => [
  28. 50 => 2000050,
  29. 100 => 2000100,
  30. 200 => 2000200,
  31. ],
  32. mtopcard\ChinaTelecomCard => [
  33. 50 => 3000050,
  34. 100 => 3000100,
  35. 200 => 3000200,
  36. ],
  37. ];
  38. }