config.php 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. namespace refill\dongyefs;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://8.134.53.93:9086/onlinepay.do';
  7. const QUERY_URL= 'http://8.134.53.93:9086/searchpay.do';
  8. const BALANCE_URL = 'http://8.134.53.93:9086/searchbalance.do';
  9. const USER_ID= '10003125';
  10. const KEY = '82dkkhEaR6GhchQkhS5SiffF2w8yX4wQ';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_dongyefs.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 'yd',
  14. mtopcard\ChinaUnicomCard => 'lt',
  15. mtopcard\ChinaTelecomCard => 'dx'
  16. ];
  17. const ERR_NOS = [
  18. '5001','5002','5003','5004','5005','5008','5009','5010','5011','5012'
  19. ];
  20. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
  21. const product_id = [
  22. mtopcard\ChinaMobileCard => [
  23. 6 => [
  24. 10 => '30000005109', 20 => '30000005110', 30 => '30000005111', 50 => '30000005112',
  25. 100 => '30000005113', 200 => '30000005114', 300 => '30000005115', 500 => '30000005116'
  26. ],//辽宁
  27. 7 => [
  28. 30 => '30000005408', 50 => '30000005409',
  29. 100 => '30000005410', 200 => '30000005411', 300 => '30000005412', 500 => '30000005413'
  30. ],//吉林
  31. 9 => [
  32. 10 => '30000005318', 20 => '30000005319', 30 => '30000005320', 50 => '30000005321',
  33. 100 => '30000005322', 200 => '30000005323', 300 => '30000005324', 500 => '30000005325'
  34. ],//上海
  35. 13 => [
  36. 10 => '30000005710', 20 => '30000005711', 30 => '30000005712', 50 => '30000005713',
  37. 100 => '30000005714', 200 => '30000005715', 300 => '30000005716', 500 => '30000005717'
  38. ],//福建
  39. 19 => [
  40. 10 => '30000005117', 20 => '30000005118', 30 => '30000005119', 50 => '30000005120',
  41. 100 => '30000005121', 200 => '30000005122', 300 => '30000005123', 500 => '30000005124'
  42. ],//广东
  43. 29 => [
  44. 10 => '30000005326', 20 => '30000005327', 30 => '30000005328', 50 => '30000005329',
  45. 100 => '30000005330', 200 => '30000005331', 300 => '30000005332', 500 => '30000005333'
  46. ],//青海
  47. ],
  48. mtopcard\ChinaTelecomCard => [
  49. 12 => [
  50. 10 => '30000005747', 20 => '30000005748', 30 => '30000005749', 50 => '30000005750',
  51. 100 => '30000005751', 200 => '30000005752', 300 => '30000005753', 500 => '30000005754'
  52. ],//安徽
  53. 16 => [
  54. 10 => '30000005763', 20 => '30000005764', 30 => '30000005765', 50 => '30000005766',
  55. 100 => '30000005767', 200 => '30000005768', 300 => '30000005769', 500 => '30000005770'
  56. ],//河南
  57. 18 => [
  58. 10 => '30000005755', 20 => '30000005756', 30 => '30000005757', 50 => '30000005758',
  59. 100 => '30000005759', 200 => '30000005760', 300 => '30000005761', 500 => '30000005762'
  60. ],//湖南
  61. ]
  62. ];
  63. //key格式 卡类型-面值-regin_no
  64. const Price = [
  65. //移动
  66. "4-10-6" => 9.7, "4-20-6" => 19.4, "4-30-6" => 29.1, "4-50-6" => 48.5, "4-100-6" => 97, "4-200-6" => 194, "4-300-6" => 291, "4-500-6" => 485,//辽宁 6
  67. "4-30-7" => 29.73, "4-50-7" => 49.55, "4-100-7" => 99.1, "4-200-7" => 198.2, "4-300-7" => 297.3, "4-500-7" => 495.5,//吉林 7
  68. "4-10-9" => 9.91, "4-20-9" => 19.82, "4-30-9" => 29.73, "4-50-9" => 49.55, "4-100-9" => 99.1, "4-200-9" => 198.2, "4-300-9" => 297.3, "4-500-9" => 495.5,//上海 9
  69. "4-10-13" => 9.9, "4-20-13" => 19.8, "4-30-13" => 29.7, "4-50-13" => 49.5, "4-100-13" => 99, "4-200-13" => 198, "4-300-13" => 297, "4-500-13" => 495,//福建 13
  70. "4-10-19" => 9.95, "4-20-19" => 19.9, "4-30-19" => 29.85, "4-50-19" => 49.75, "4-100-19" => 99.5, "4-200-19" => 199, "4-300-19" => 298.5, "4-500-19" => 497.5,//广东 19
  71. "4-10-29" => 9.8, "4-20-29" => 19.6, "4-30-29" => 29.4, "4-50-29" => 49, "4-100-29" => 98, "4-200-29" => 196, "4-300-29" => 294, "4-500-29" => 490,//青海 29
  72. //电信
  73. "6-10-12" => 10.065, "6-20-12" => 20.13, "6-30-12" => 30.195, "6-50-12" => 50.225, "6-100-12" => 100.45, "6-200-12" => 200.9, "6-300-12" => 301.35, "6-500-12" => 502.25,//安徽 12
  74. "6-10-16" => 10.065, "6-20-16" => 20.13, "6-30-16" => 30.195, "6-50-16" => 50.225, "6-100-16" => 100.45, "6-200-16" => 200.9, "6-300-16" => 301.35, "6-500-16" => 502.25,//河南 16
  75. "6-10-18" => 10.065, "6-20-18" => 20.13, "6-30-18" => 30.195, "6-50-18" => 50.225, "6-100-18" => 100.45, "6-200-18" => 200.9, "6-300-18" => 301.35, "6-500-18" => 502.25,//湖南 18
  76. ];
  77. }