config.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace refill\lexiang;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://create-sd.mallka.cc/create';
  7. const QUERY_URL = 'http://query-sd.mallka.cc/queryOrder';
  8. const BALANCE_URL = 'http://query-sd.mallka.cc/queryBalance';
  9. const MCH_ID = '20';
  10. const KEY = 'fd870cf049bc7611af779bfd331d5e80';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_lexiang.php";
  12. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  13. const PRODUCT = [
  14. mtopcard\ChinaMobileCard => [
  15. 30 => '68e191b2e1c1',
  16. 50 => 'e75a29cc57ca',
  17. 100 => '8fc0798e4517',
  18. 200 => '5d03557190e9',
  19. 300 => '3f648ebfd86c',
  20. 500 => '61d7021be485'
  21. ],
  22. mtopcard\ChinaUnicomCard => [
  23. 30 => '394fff5fbae9',
  24. 50 => 'c80efca1e1cc',
  25. 100 => '0f813d2d35b7',
  26. 200 => '1a5fc013c6f7',
  27. 300 => '2d451b3a4d73',
  28. 500 => '269ad603f41f'
  29. ],
  30. mtopcard\ChinaTelecomCard => [
  31. 30 => '64f6c11da78a',
  32. 50 => '229f1496b393',
  33. 100 => '4886e9ac1e39',
  34. 200 => 'a7550096b1b5'
  35. ]
  36. ];
  37. const ERRCODES = [100, 101, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1013, 9999];
  38. }