config.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace refill\yuntian;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.108.209.201/flow-receiver/api/recharge/feecbk';
  7. const QUERY_URL = 'http://47.108.209.201/flow-receiver/api/query/feecbk';
  8. const BALANCE_URL = 'http://47.108.209.201/flow-receiver/api/balance/feecbk';
  9. const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_yuntian.php';
  10. const ACCOUNT = 'ytyzqg';
  11. const KEY = 'c87130d0ce7a4792ba91aab8b8f9ef7e';
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 'CMCC',
  14. mtopcard\ChinaUnicomCard => 'CUCC',
  15. mtopcard\ChinaTelecomCard => 'CTCC'
  16. ];
  17. const ProductIDS = [
  18. mtopcard\ChinaMobileCard => [
  19. 50 => 'CMCCALLr50r',
  20. 100 => 'CMCCALLr100r',
  21. 200 => 'CMCCALLr200r',
  22. ],
  23. mtopcard\ChinaUnicomCard => [
  24. 30 => 'CUCCALLr30r',
  25. 50 => 'CUCCALLr50r',
  26. 100 => 'CUCCALLr100r',
  27. 200 => 'CUCCALLr200r',
  28. ],
  29. mtopcard\ChinaTelecomCard => [
  30. 30 => 'CTCCALLr30r',
  31. 50 => 'CTCCALLr50r',
  32. 100 => 'CTCCALLr100r',
  33. 200 => 'CTCCALLr200r',
  34. ],
  35. ];
  36. const NotifyErrCodes = [
  37. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','025','027','028','098','099'
  38. ];
  39. const QueryErrCodes = [
  40. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','024','025','026','027','028','098','099'
  41. ];
  42. }