config.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace refill\jiaqi;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.97.90.81:1008/plat/api/hf/submitorder';
  7. const QUERY_URL= 'http://47.97.90.81:1008/plat/api/queryorder';
  8. const BALANCE_URL = 'http://47.97.90.81:1008/plat/api/querybalance';
  9. const USER_ID= '200005';
  10. const KEY = 'ee45f8ff91a04c09b6a46a392cdccd6a';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_jiaqi.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. 50 => 1000050,
  26. 100 => 1000100,
  27. 200 => 1000200,
  28. ],
  29. mtopcard\ChinaUnicomCard => [
  30. 30 => 2000030,
  31. 50 => 2000050,
  32. 100 => 2000100,
  33. 200 => 2000200,
  34. ],
  35. mtopcard\ChinaTelecomCard => [
  36. 10 => 3000010,
  37. 20 => 3000020,
  38. 30 => 3000030,
  39. 50 => 3000050,
  40. 100 => 3000100,
  41. 200 => 3000200,
  42. ],
  43. ];
  44. }