config.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. 10 => 'CTCCALLr10r',
  34. 20 => 'CTCCALLr20r',
  35. 30 => 'CTCCALLr30r',
  36. 50 => 'CTCCALLr50r',
  37. 100 => 'CTCCALLr100r',
  38. 200 => 'CTCCALLr200r',
  39. ],
  40. ];
  41. const NotifyErrCodes = [
  42. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','025','027','028','098','099'
  43. ];
  44. const QueryErrCodes = [
  45. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','024','025','026','027','028','098','099'
  46. ];
  47. }