config.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace refill\dazhanggui;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.101.136.81:10186/plat/api/old/submitorder';
  7. const QUERY_URL= 'http://47.101.136.81:10186/plat/api/old/queryorder';
  8. const BALANCE_URL = 'http://47.101.136.81:10186/plat/api/old/queryBalance';
  9. const USER_ID= '200008';
  10. const KEY = '6361dddd0e424cdc922d0c26bc5743a2';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_dazhanggui.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. 10 => 1000010,
  24. 20 => 1000020,
  25. 30 => 1000030,
  26. 50 => 1000050,
  27. 100 => 1000100,
  28. 200 => 1000200,
  29. ],
  30. mtopcard\ChinaUnicomCard => [
  31. 30 => 2000030,
  32. 50 => 2000050,
  33. 100 => 2000100,
  34. 200 => 2000200,
  35. 300 => 2000300,
  36. 500 => 2000500,
  37. ],
  38. mtopcard\ChinaTelecomCard => [
  39. 10 => 3000010,
  40. 20 => 3000020,
  41. 30 => 3000030,
  42. 50 => 3000050,
  43. 100 => 3000100,
  44. 200 => 3000200,
  45. ],
  46. ];
  47. }