config.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?php
  2. namespace refill\yuewen_fs;
  3. use mtopcard;
  4. class config
  5. {
  6. //https://www.showdoc.com.cn/AQL666666/
  7. const ORDER_URL = 'http://123.60.5.158:9086/onlinepay.do';
  8. const QUERY_URL= 'http://123.60.5.158:9086/searchpay.do';
  9. const BALANCE_URL = 'http://123.60.5.158:9086/searchbalance.do';
  10. const USER_ID= '10002703';
  11. const KEY = 'sNwxxHPCeSxf8TbasXBftfFRaps2FjbH';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yuewen_fs.php";
  13. const operator = [
  14. mtopcard\ChinaMobileCard => 'yd',
  15. mtopcard\ChinaUnicomCard => 'lt',
  16. mtopcard\ChinaTelecomCard => 'dx'
  17. ];
  18. const ERR_NOS = [
  19. '5001','5002','5003','5004','5005','5008','5009','5010','5011','5012'
  20. ];
  21. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
  22. const ProductIdS = [
  23. mtopcard\ChinaMobileCard =>
  24. [
  25. //贵州
  26. 24 => [
  27. 50 => '32385',
  28. 100 => '32386',
  29. 200 => '323627',
  30. ],
  31. //江苏
  32. 10 => [
  33. 30 => '331116',
  34. 50 => '331117',
  35. 100 => '331118',
  36. 200 => '30000000790',
  37. ],
  38. //福建
  39. 13 => [
  40. 50 => '3831',
  41. 100 => '3832',
  42. 200 => '38585',
  43. ],
  44. //河南
  45. 16 => [
  46. 50 => '3935',
  47. 100 => '3936',
  48. 200 => '39595',
  49. ],
  50. //广西
  51. 20 => [
  52. 50 => '31561',
  53. 100 => '31562',
  54. 200 => '315621',
  55. ],
  56. //河北
  57. 3 => [
  58. 50 => '31249',
  59. 100 => '31250',
  60. 200 => '312617'
  61. ],
  62. //四川
  63. 23 => [
  64. 50 => '3727',
  65. 100 => '3728',
  66. 200 => '37583',
  67. ],
  68. //浙江
  69. 11 => [
  70. 50 => '3415',
  71. 100 => '3416',
  72. 200 => '34575',
  73. ],
  74. //云南
  75. 25 => [
  76. 50 => '31977',
  77. 100 => '31978',
  78. 200 => '319625',
  79. ],
  80. ],
  81. mtopcard\ChinaUnicomCard =>
  82. [
  83. ],
  84. mtopcard\ChinaTelecomCard =>
  85. [
  86. //天津
  87. 2 => [
  88. 30 => '282369',
  89. 50 => '282370',
  90. 100 => '282371',
  91. 200 => '282601',
  92. ],
  93. //四川
  94. 23 => [
  95. 30 => '271314',
  96. 50 => '271315',
  97. 100 => '271316',
  98. 200 => '271588',
  99. ],
  100. //上海
  101. 9 => [
  102. 30 => '266289',
  103. 50 => '266290',
  104. 100 => '266291',
  105. 200 => '266580'
  106. ],
  107. //浙江
  108. 11 => [
  109. 30 => '268299',
  110. 50 => '268300',
  111. 100 => '268301',
  112. 200 => '268584',
  113. ],
  114. //福建
  115. 13 => [
  116. 30 => '272319',
  117. 50 => '272320',
  118. 100 => '272321',
  119. 200 => '272589',
  120. ],
  121. //江苏
  122. 10 => [
  123. 30 => '293424',
  124. 50 => '293425',
  125. 100 => '293426',
  126. 200 => '293613',
  127. ],
  128. //广东
  129. 19 => [
  130. 30 => '267294',
  131. 50 => '267295',
  132. 100 => '267296',
  133. 200 => '267582',
  134. ],
  135. ]
  136. ];
  137. //key格式 卡类型-面值-regin_no
  138. const Price = [
  139. //移动
  140. "4-50-24" => 47, "4-100-24" => 94, "4-200-24" => 188,//贵州 24
  141. "4-30-10" => 28.35,"4-50-10" => 47.9, "4-100-10" => 95.8, "4-200-10" => 191.6,//江苏 10
  142. "4-50-13" => 46.77, "4-100-13" => 93.5, "4-200-13" => 187,//福建 13
  143. "4-50-16" => 47, "4-100-16" => 94, "4-200-16" => 188,//河南 16
  144. "4-50-20" => 46.5, "4-100-20" => 93, "4-200-20" => 186,//广西 20
  145. "4-50-3" => 47.05, "4-100-3" => 94.1, "4-200-3" => 188.2,//河北 3
  146. "4-50-23" => 47.25, "4-100-23" => 94.5, "4-200-23" => 189,//四川 23
  147. "4-50-11" => 47.9, "4-100-11" => 95.8, "4-200-11" => 191.6,//浙江 11
  148. "4-50-25" => 46.75, "4-100-25" => 93.5, "4-200-25" => 187,//云南 25
  149. //电信
  150. "6-30-2" => 27.9, "6-50-2" => 46.5, "6-100-2" => 93, "6-200-2" => 186,//天津 2
  151. "6-30-23" => 27.9, "6-50-23" => 46.5, "6-100-23" => 93, "6-200-23" => 186,//四川 23
  152. "6-30-9" => 27.9, "6-50-9" => 46.5, "6-100-9" => 93, "6-200-9" => 186,//上海 9
  153. "6-30-11" => 28.05, "6-50-11" => 46.75, "6-100-11" => 93.5, "6-200-11" => 187,//浙江 11
  154. "6-30-13" => 27.6, "6-50-13" => 46, "6-100-13" => 92, "6-200-13" => 184,//福建 13
  155. "6-30-10" => 28.35, "6-50-10" => 47.25, "6-100-10" => 94.5, "6-200-10" => 189,//江苏 10
  156. "6-30-19" => 28.35, "6-50-19" => 47.25, "6-100-19" => 94.5, "6-200-19" => 189,//广东 19
  157. ];
  158. }