config.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. namespace refill\youhe_fs;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://118.31.168.250:10186/plat/api/old/submitorder';
  7. const QUERY_URL= 'http://118.31.168.250:10186/plat/api/old/queryorder';
  8. const BALANCE_URL = 'http://118.31.168.250:10186/plat/api/old/queryBalance';
  9. const USER_ID= '200064';
  10. const KEY = 'c4eace522e51459eb52ad030826bb2c7';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_youhe_fs.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 1,
  14. mtopcard\ChinaUnicomCard => 2,
  15. mtopcard\ChinaTelecomCard => 3
  16. ];
  17. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  18. const ERR_NOS = [
  19. 1000,1001,1003,1004,2001,2002,2003,2020,2021,1006,2030,3003
  20. ];
  21. const Product = [
  22. mtopcard\ChinaMobileCard => [
  23. //江苏
  24. 10 => [
  25. 30 => 1320030,
  26. 50 => 1320050,
  27. 100 => 1320100,
  28. 200 => 1320200,
  29. ],
  30. //福建
  31. 13 => [
  32. 30 => 1350030,
  33. 50 => 1350050,
  34. 100 => 1350100,
  35. 200 => 1350200,
  36. ],
  37. //贵州
  38. 24 => [
  39. 30 => 1520030,
  40. 50 => 1520050,
  41. 100 => 1520100,
  42. 200 => 1520200,
  43. ],
  44. //河南
  45. 16 => [
  46. 30 => 1410030,
  47. 50 => 1410050,
  48. 100 => 1410100,
  49. 200 => 1410200,
  50. ],
  51. //云南
  52. 25 => [
  53. 30 => 1530030,
  54. 50 => 1530050,
  55. 100 => 1530100,
  56. 200 => 1530200,
  57. ],
  58. //广西
  59. 20 => [
  60. 30 => 1450030,
  61. 50 => 1450050,
  62. 100 => 1450100,
  63. 200 => 1450200,
  64. ],
  65. //湖北
  66. 17 => [
  67. 50 => 1420050,
  68. 100 => 1420100,
  69. 200 => 1420200,
  70. ],
  71. ],
  72. mtopcard\ChinaTelecomCard => [
  73. //山东
  74. 15 => [
  75. 30 => 3370030,
  76. 50 => 3370050,
  77. 100 => 3370100,
  78. 200 => 3370200,
  79. ],
  80. //四川
  81. 23 => [
  82. 30 => 3510030,
  83. 50 => 3510050,
  84. 100 => 3510100,
  85. 200 => 3510200,
  86. ],
  87. //云南
  88. 25 => [
  89. 30 => 3530030,
  90. 50 => 3530050,
  91. 100 => 3530100,
  92. 200 => 3530200,
  93. ],
  94. //湖南
  95. 18 => [
  96. 30 => 3430030,
  97. 50 => 3430050,
  98. 100 => 3430100,
  99. 200 => 3430200,
  100. ],
  101. //福建
  102. 13 => [
  103. 30 => 3350030,
  104. 50 => 3350050,
  105. 100 => 3350100,
  106. 200 => 3350200,
  107. ],
  108. ],
  109. ];
  110. //key格式 卡类型-面值-regin_no
  111. const Price = [
  112. //移动
  113. "4-30-10" => 28.05, "4-50-10" => 47.25, "4-100-10" => 94.5, "4-200-10" => 189,//江苏 10
  114. "4-30-24" => 28.05, "4-50-24" => 47.25, "4-100-24" => 94.5, "4-200-24" => 189,//贵州 24
  115. "4-30-13" => 28.05, "4-50-13" => 47.25, "4-100-13" => 94.5, "4-200-13" => 189,//福建 13
  116. "4-30-16" => 28.05, "4-50-16" => 47.25, "4-100-16" => 94.5, "4-200-16" => 189,//河南 16
  117. "4-30-25" => 28.05, "4-50-25" => 47.25, "4-100-25" => 94.5, "4-200-25" => 189,//云南 25
  118. "4-30-20" => 28.05, "4-50-20" => 47.25, "4-100-20" => 94.5, "4-200-20" => 189,//广西 20
  119. "4-50-17" => 47.25, "4-100-17" => 94.5, "4-200-17" => 189,//湖北 17
  120. //电信
  121. "6-30-15" => 28.05, "6-50-15" => 48, "6-100-15" => 96, "6-200-15" => 192,//山东 15
  122. "6-30-23" => 28.35, "6-50-23" => 47.25, "6-100-23" => 94.5, "6-200-23" => 189,//四川 23
  123. "6-30-25" => 28.05, "6-50-25" => 48, "6-100-25" => 96, "6-200-25" => 192,//云南 25
  124. "6-30-18" => 28.35, "6-50-18" => 47.25, "6-100-18" => 94.5, "6-200-18" => 189,//湖南 18
  125. "6-30-13" => 28.35, "6-50-13" => 47.25, "6-100-13" => 94.5, "6-200-13" => 189,//福建 13
  126. ];
  127. }