config.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace refill\wanxin;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.98.232.225/flow-receiver/api/recharge/feecbk';
  7. const QUERY_URL = 'http://47.98.232.225/flow-receiver/api/query/feecbk';
  8. const BALANCE_URL = 'http://47.98.232.225/flow-receiver/api/balance/feecbk';
  9. const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_wanxin.php';
  10. const ACCOUNT = 'wxgyqg';
  11. const KEY = '1d22c23169c54a998262bd797bbe3c84';
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 'CMCC',
  14. mtopcard\ChinaUnicomCard => 'CUCC',
  15. mtopcard\ChinaTelecomCard => 'CTCC'
  16. ];
  17. const ProductIDS = [
  18. mtopcard\ChinaMobileCard => [
  19. 100 => 'CMCCALLr100r',
  20. 200 => 'CMCCALLr200r',
  21. 300 => 'CMCCALLr300r',
  22. 500 => 'CMCCALLr500r'
  23. ],
  24. mtopcard\ChinaUnicomCard => [
  25. 30 => 'CUCCALLr30r',
  26. 50 => 'CUCCALLr50r',
  27. 100 => 'CUCCALLr100r',
  28. 200 => 'CUCCALLr200r',
  29. 300 => 'CUCCALLr300r',
  30. 500 => 'CUCCALLr500r'
  31. ],
  32. mtopcard\ChinaTelecomCard => [
  33. 30 => 'CTCCALLr30r',
  34. 50 => 'CTCCALLr50r',
  35. 100 => 'CTCCALLr100r',
  36. 200 => 'CTCCALLr200r',
  37. 300 => 'CTCCALLr300r',
  38. 500 => 'CTCCALLr500r'
  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. }