config.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace refill\xinbao_trd;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://101.37.158.170:16188/plat/api/hf/submitorder';
  7. const QUERY_URL= 'http://101.37.158.170:16188/plat/api/queryorder';
  8. const BALANCE_URL = 'http://101.37.158.170:16188/plat/api/querybalance';
  9. const USER_ID= '100051';
  10. const KEY = '6ff062b598fe4fa1b5998daf9ea8194c';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_xinbao_trd.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. 30 => 2000030,
  29. 50 => 2000050,
  30. 100 => 2000100,
  31. 200 => 2000200,
  32. ],
  33. mtopcard\ChinaTelecomCard => [
  34. ],
  35. ];
  36. }