config.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. namespace refill\bier_fs;
  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_fs.php';
  10. const ACCOUNT = 'ylfs1588';
  11. const KEY = '4592a79540984a8f8b9610db42cf6561';
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 'CMCC',
  14. mtopcard\ChinaUnicomCard => 'CUCC',
  15. mtopcard\ChinaTelecomCard => 'CTCC'
  16. ];
  17. const ProductIDS = [
  18. mtopcard\ChinaMobileCard => [
  19. //福建
  20. 13 => [
  21. 30 => 'CMCCFJr30r', 50 => 'CMCCFJr50r',
  22. 100 => 'CMCCFJr100r', 200 => 'CMCCFJr200r'
  23. ],
  24. //贵州
  25. 24 => [
  26. 30 => 'CMCCGZr30r', 50 => 'CMCCGZr50r',
  27. 100 => 'CMCCGZr100r', 200 => 'CMCCGZr200r'
  28. ],
  29. //广东
  30. 19 => [
  31. 30 => 'CMCCGDr30r', 50 => 'CMCCGDr50r',
  32. 100 => 'CMCCGDr100r', 200 => 'CMCCGDr200r'
  33. ],
  34. //山东
  35. 15 => [
  36. 50 => 'CMCCSDr50r',
  37. 100 => 'CMCCSDr100r', 200 => 'CMCCSDr200r'
  38. ],
  39. //江苏
  40. 10 => [
  41. 30 => 'CMCCJSr30r', 50 => 'CMCCJSr50r',
  42. 100 => 'CMCCJSr100r', 200 => 'CMCCJSr200r'
  43. ],
  44. //云南
  45. 25 => [
  46. 30 => 'CMCCYNr30r', 50 => 'CMCCYNr50r',
  47. 100 => 'CMCCYNr100r', 200 => 'CMCCYNr200r'
  48. ],
  49. 16 => [
  50. 30 => 'CMCCYUr30r', 50 => 'CMCCYUr50r',
  51. 100 => 'CMCCYUr100r', 200 => 'CMCCYUr200r'
  52. ], //河南
  53. 11 => [
  54. 30 => 'CMCCZJr30r', 50 => 'CMCCZJr50r',
  55. 100 => 'CMCCZJr100r', 200 => 'CMCCZJr200r'
  56. ], //浙江
  57. ],
  58. mtopcard\ChinaTelecomCard => [
  59. //山东
  60. 15 => [
  61. 30 => 'CTCCSDr30r', 50 => 'CTCCSDr50r',
  62. 100 => 'CTCCSDr100r', 200 => 'CTCCSDr200r'
  63. ],
  64. //天津
  65. 2 => [
  66. 30 => 'CTCCTJr30r', 50 => 'CTCCTJr50r',
  67. 100 => 'CTCCTJr100r', 200 => 'CTCCTJr200r'
  68. ],
  69. //云南
  70. 25 => [
  71. 30 => 'CTCCYNr30r', 50 => 'CTCCYNr50r',
  72. 100 => 'CTCCYNr100r', 200 => 'CTCCYNr200r'
  73. ],
  74. //广东
  75. 19 => [
  76. 30 => 'CTCCGDr30r', 50 => 'CTCCGDr50r',
  77. 100 => 'CTCCGDr100r', 200 => 'CTCCGDr200r'
  78. ],
  79. //上海
  80. 9 => [
  81. 50 => 'CTCCSHr50r',
  82. 100 => 'CTCCSHr100r', 200 => 'CTCCSHr200r'
  83. ],
  84. //湖南
  85. 18 => [
  86. 30 => 'CTCCHNr30r', 50 => 'CTCCHNr50r',
  87. 100 => 'CTCCHNr100r', 200 => 'CTCCHNr200r'
  88. ],
  89. ]
  90. ];
  91. const NotifyErrCodes = [
  92. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','025','027','028','098','099'
  93. ];
  94. const QueryErrCodes = [
  95. '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','024','025','026','027','028','098','099'
  96. ];
  97. const Price = [
  98. // 移动
  99. "4-30-13" => 28.8, "4-50-13" => 48, "4-100-13" => 96, "4-200-13" => 192,//福建 13
  100. "4-30-24" => 28.65, "4-50-24" => 47.75, "4-100-24" => 95.5, "4-200-24" => 191,//贵州 24
  101. "4-30-19" => 28.8, "4-50-19" => 48, "4-100-19" => 96, "4-200-19" => 192,//广东 19
  102. "4-50-15" => 48, "4-100-15" => 96, "4-200-15" => 192,//山东 15
  103. "4-30-10" => 28.65, "4-50-10" => 47.75, "4-100-10" => 95.5, "4-200-10" => 191,//江苏 10
  104. "4-30-25" => 28.8, "4-50-25" => 48, "4-100-25" => 96, "4-200-25" => 192,//云南 25
  105. "4-30-16" => 28.8, "4-50-16" => 48, "4-100-16" => 96, "4-200-16" => 192,//河南 16
  106. "4-30-11" => 28.95, "4-50-11" => 48.25, "4-100-11" => 96.5, "4-200-11" => 193,//浙江 11
  107. "6-30-23" => 28.65, "6-50-23" => 47.75, "6-100-23" => 95.5, "6-200-23" => 191,//四川 23
  108. "6-30-15" => 28.65, "6-50-15" => 47.75, "6-100-15" => 95.5, "6-200-15" => 191,//山东 15
  109. "6-30-2" => 28.65, "6-50-2" => 47.75, "6-100-2" => 95.5, "6-200-2" => 191,//天津 2
  110. "6-30-25" => 28.65, "6-50-25" => 47.75, "6-100-25" => 95.5, "6-200-25" => 191,//云南 25
  111. "6-30-19" => 28.8, "6-50-19" => 48, "6-100-19" => 96, "6-200-19" => 192,//广东 19
  112. "6-50-9" => 47.75, "6-100-9" => 95.5, "6-200-9" => 191,//上海 9
  113. "6-30-18" => 28.8, "6-50-18" => 48, "6-100-18" => 96, "6-200-18" => 192,//湖南 18
  114. ];
  115. }