config.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace refill\yikatong;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.104.217.125/plat/api/cube/commit';
  7. const QUERY_URL = 'http://47.104.217.125/plat/api/cube/queryorder';
  8. const BALANCE_URL = 'http://47.104.217.125/plat/api/cube/querybalance';
  9. const APP_ID = '200005';
  10. const KEY = '2e11781155e243208eb656e013309767';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yikatong.php";
  12. const ExtHeaders = ['Content-Type: application/json'];
  13. const ChannelCode = [
  14. mtopcard\ChinaMobileCard => 1,
  15. mtopcard\ChinaUnicomCard => 2,
  16. mtopcard\ChinaTelecomCard => 3
  17. ];
  18. const PRODUCT = [
  19. mtopcard\ChinaMobileCard => [
  20. 30 => 1000030,
  21. 50 => 1000050,
  22. 100 => 1000100,
  23. 200 => 1000200,
  24. ],
  25. mtopcard\ChinaUnicomCard => [
  26. 30 => 2000030,
  27. 50 => 2000050,
  28. 100 => 2000100,
  29. 200 => 2000200,
  30. ],
  31. mtopcard\ChinaTelecomCard => [
  32. 30 => 3000030,
  33. 50 => 3000050,
  34. 100 => 3000100,
  35. 200 => 3000200,
  36. ],
  37. ];
  38. const ERRCODES = [
  39. 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014
  40. ];
  41. }