config.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace refill\xiaochuang;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://1.116.75.33/api/flow/recharge';
  7. const QUERY_URL = 'http://1.116.75.33/api/flow/result';
  8. const BALANCE_URL = 'http://1.116.75.33/api/flow/balance';
  9. const APP_ID = '8e4adec235d11ba4d335d9b8aead1e4b';
  10. const KEY = '3dee2dfb2eef18385754e15b50718153';
  11. const code = [
  12. mtopcard\ChinaMobileCard => [
  13. 100 => 18,
  14. 200 => 19
  15. ],
  16. mtopcard\ChinaUnicomCard => [
  17. 100 => 21,
  18. 200 => 22
  19. ],
  20. mtopcard\ChinaTelecomCard => [
  21. 100 => 23,
  22. 200 => 24
  23. ],
  24. ];
  25. const product = [
  26. mtopcard\ChinaMobileCard => [
  27. 100 => '6_100',
  28. 200 => '6_200'
  29. ],
  30. mtopcard\ChinaUnicomCard => [
  31. 100 => '7_100',
  32. 200 => '7_200'
  33. ],
  34. mtopcard\ChinaTelecomCard => [
  35. 100 => '8_100',
  36. 200 => '8_200'
  37. ],
  38. ];
  39. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  40. //回调地址,由上游手动在后台设置的。
  41. const NOTIFY_URL = BASE_SITE_URL."/mobile/callback/refill_xiaochuang.php";
  42. }