config.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. 30 => 'CMCCALLr30r',
  20. 50 => 'CMCCALLr50r',
  21. 100 => 'CMCCALLr100r',
  22. 200 => 'CMCCALLr200r',
  23. ],
  24. mtopcard\ChinaUnicomCard => [
  25. 30 => 'CUCCALLr30r',
  26. 50 => 'CUCCALLr50r',
  27. 100 => 'CUCCALLr100r',
  28. 200 => 'CUCCALLr200r',
  29. ],
  30. mtopcard\ChinaTelecomCard => [
  31. ],
  32. ];
  33. const NotifyErrCodes = [
  34. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','025','027','028','098','099'
  35. ];
  36. const QueryErrCodes = [
  37. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','024','025','026','027','028','098','099'
  38. ];
  39. }