config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace refill\hangtong;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.108.161.207/flow-receiver/api/v2/recharge';
  7. const QUERY_URL = 'http://47.108.161.207/flow-receiver/api/v2/query/single';
  8. const BALANCE_URL = 'http://47.108.161.207/flow-receiver/api/v2/balance/query';
  9. const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_hangtong.php';
  10. const ACCOUNT = 'yezi';
  11. const KEY = '9074ca3652384ab2a9c7278842ec1147';
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 'CMCC',
  14. mtopcard\ChinaUnicomCard => 'CUCC',
  15. mtopcard\ChinaTelecomCard => 'CTCC'
  16. ];
  17. const ProductIDS = [
  18. mtopcard\ChinaMobileCard => [
  19. 30 => 'CMCCALLr30r', 50 => 'CMCCALLr50r', 100 => 'CMCCALLr100r', 200 => 'CMCCALLr200r'
  20. ],
  21. mtopcard\ChinaUnicomCard => [
  22. 30 => 'CUCCALLr30r', 50 => 'CUCCALLr50r', 100 => 'CUCCALLr100r', 200 => 'CUCCALLr200r',
  23. 300 => 'CUCCALLr300r', 500 => 'CUCCALLr500r'
  24. ],
  25. mtopcard\ChinaTelecomCard => [
  26. 30 => 'CTCCALLr30r', 50 => 'CTCCALLr50r', 100 => 'CTCCALLr100r', 200 => 'CTCCALLr200r',
  27. 300 => 'CTCCALLr300r', 500 => 'CTCCALLr500r'
  28. ]
  29. ];
  30. }