config.php 1.6 KB

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