config.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace refill\hangtong;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.109.31.191/flow-receiver/api/v2/recharge';
  7. const QUERY_URL = 'http://47.109.31.191/flow-receiver/api/v2/query/single';
  8. const BALANCE_URL = 'http://47.109.31.191/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. ],
  24. mtopcard\ChinaTelecomCard => [
  25. 30 => 'CTCCALLr30r', 50 => 'CTCCALLr50r', 100 => 'CTCCALLr100r', 200 => 'CTCCALLr200r'
  26. ]
  27. ];
  28. }