config.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. 8 => [
  48. 10 => '30000005630', 20 => '30000005631', 30 => '30000005632', 50 => '30000005638',
  49. 100 => '30000005634', 200 => '30000005635', 300 => '30000005636', 500 => '30000005637'
  50. ],//黑龙江
  51. 5 => [
  52. 50 => '30000005613',
  53. 100 => '30000005614', 200 => '30000005615', 300 => '30000005616', 500 => '30000005617'
  54. ],//内蒙古
  55. ],
  56. mtopcard\ChinaTelecomCard => [
  57. 12 => [
  58. 10 => '30000005747', 20 => '30000005748', 30 => '30000005749', 50 => '30000005750',
  59. 100 => '30000005751', 200 => '30000005752', 300 => '30000005753', 500 => '30000005754'
  60. ],//安徽
  61. 16 => [
  62. 10 => '30000005763', 20 => '30000005764', 30 => '30000005765', 50 => '30000005766',
  63. 100 => '30000005767', 200 => '30000005768', 300 => '30000005769', 500 => '30000005770'
  64. ],//河南
  65. 18 => [
  66. 10 => '30000005755', 20 => '30000005756', 30 => '30000005757', 50 => '30000005758',
  67. 100 => '30000005759', 200 => '30000005760', 300 => '30000005761', 500 => '30000005762'
  68. ],//湖南
  69. ]
  70. ];
  71. //key格式 卡类型-面值-regin_no
  72. const Price = [
  73. //移动
  74. "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
  75. "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
  76. "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
  77. "4-10-13" => 9.89, "4-20-13" => 19.78, "4-30-13" => 29.67, "4-50-13" => 49.45, "4-100-13" => 98.9, "4-200-13" => 197.8, "4-300-13" => 296.7, "4-500-13" => 494.5,//福建 13
  78. "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
  79. "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
  80. "4-10-8" => 10, "4-20-8" => 20, "4-30-8" => 30, "4-50-8" => 50, "4-100-8" => 100, "4-200-8" => 200, "4-300-8" => 300, "4-500-8" => 500,//黑龙江 8
  81. "4-50-5" => 50.1, "4-100-5" => 100.2, "4-200-5" => 200.4, "4-300-5" => 300.6, "4-500-5" => 501,//内蒙古 5
  82. //电信
  83. "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
  84. "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
  85. "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
  86. ];
  87. }