config.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace refill\canbin;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://8.154.19.179:16188/plat/api/hf/submitorder';
  7. const QUERY_URL= 'http://8.154.19.179:16188/plat/api/queryorder';
  8. const BALANCE_URL = 'http://8.154.19.179:16188/plat/api/querybalance';
  9. const USER_ID= '100003';
  10. const KEY = 'aa5303ead7314d2ea5f4145d908b7bfb';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_canbin.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. 30 => 1000030,
  24. 50 => 1000050,
  25. 100 => 1000100,
  26. 200 => 1000200,
  27. ],
  28. mtopcard\ChinaUnicomCard => [
  29. 30 => 2000030,
  30. 50 => 2000050,
  31. 100 => 2000100,
  32. 200 => 2000200,
  33. ],
  34. mtopcard\ChinaTelecomCard => [
  35. 50 => 3000050,
  36. 100 => 3000100,
  37. 200 => 3000200,
  38. ],
  39. ];
  40. }