config.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. 10 => 'CMCCALLr10r',
  20. 20 => 'CMCCALLr20r',
  21. 100 => 'CMCCALLr100r',
  22. 200 => 'CMCCALLr200r',
  23. 300 => 'CMCCALLr300r',
  24. 500 => 'CMCCALLr500r'
  25. ],
  26. mtopcard\ChinaUnicomCard => [
  27. 30 => 'CUCCALLr30r',
  28. 50 => 'CUCCALLr50r',
  29. 100 => 'CUCCALLr100r',
  30. 200 => 'CUCCALLr200r',
  31. 300 => 'CUCCALLr300r',
  32. 500 => 'CUCCALLr500r'
  33. ],
  34. mtopcard\ChinaTelecomCard => [
  35. 30 => 'CTCCALLr30r',
  36. 50 => 'CTCCALLr50r',
  37. 100 => 'CTCCALLr100r',
  38. 200 => 'CTCCALLr200r',
  39. 300 => 'CTCCALLr300r',
  40. 500 => 'CTCCALLr500r'
  41. ],
  42. ];
  43. const NotifyErrCodes = [
  44. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','025','027','028','098','099'
  45. ];
  46. const QueryErrCodes = [
  47. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','024','025','026','027','028','098','099'
  48. ];
  49. }