config.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace refill\zhenghe;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://api.bjxytxkj.com.cn:1008/hqorder/api/submit';
  7. const QUERY_URL = 'http://api.bjxytxkj.com.cn:1008/hqorder/api/query';
  8. const BALANCE_URL = 'http://api.bjxytxkj.com.cn:1008/hqorder/api/balance';
  9. const MCHID = '200024';
  10. const KEY = 'b5c5bae0bbf84eb58c3f38b091342059';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_zhenghe.php";
  12. const ExtHeaders = ['Content-Type: application/json'];
  13. const product_id = [
  14. mtopcard\ChinaMobileCard => [
  15. 30 => 1000030,
  16. 50 => 1000050,
  17. 100 => 1000100,
  18. 200 => 1000200,
  19. 300 => 1000300,
  20. 500 => 1000500
  21. ],
  22. mtopcard\ChinaUnicomCard => [
  23. 1 => 2000001,
  24. 2 => 2000002,
  25. 3 => 2000003,
  26. 4 => 2000004,
  27. 5 => 2000005,
  28. 6 => 2000006,
  29. 7 => 2000007,
  30. 8 => 2000008,
  31. 9 => 2000009,
  32. 10 => 2000010,
  33. 20 => 2000020,
  34. 30 => 2000030,
  35. 50 => 2000050,
  36. 100 => 2000100,
  37. 200 => 2000200,
  38. 300 => 2000300,
  39. 500 => 2000500
  40. ],
  41. mtopcard\ChinaTelecomCard => [
  42. 30 => 3000030,
  43. 50 => 3000050,
  44. 100 => 3000100,
  45. 200 => 3000200,
  46. 300 => 3000300,
  47. 500 => 3000500
  48. ],
  49. ];
  50. }