config.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. mtopcard\ChinaTelecomCard => [
  46. //山东
  47. 15 => [
  48. 30 => 3370030,
  49. 50 => 3370050,
  50. 100 => 3370100,
  51. 200 => 3370200,
  52. ],
  53. //四川
  54. 23 => [
  55. 30 => 3510030,
  56. 50 => 3510050,
  57. 100 => 3510100,
  58. 200 => 3510200,
  59. ],
  60. //云南
  61. 25 => [
  62. 30 => 3530030,
  63. 50 => 3530050,
  64. 100 => 3530100,
  65. 200 => 3530200,
  66. ],
  67. ],
  68. ];
  69. //key格式 卡类型-面值-regin_no
  70. const Price = [
  71. //移动
  72. "4-30-10" => 28.05, "4-50-10" => 46.75, "4-100-10" => 93.5, "4-200-10" => 187,//江苏 10
  73. "4-30-24" => 28.05, "4-50-24" => 46.75, "4-100-24" => 93.5, "4-200-24" => 187,//贵州 24
  74. "4-30-13" => 28.05, "4-50-13" => 46.75, "4-100-13" => 93.5, "4-200-13" => 187,//福建 13
  75. //电信
  76. "6-30-15" => 28.05, "6-50-15" => 46.75, "6-100-15" => 93.5, "6-200-15" => 187,//山东 15
  77. "6-30-23" => 28.05, "6-50-23" => 46.75, "6-100-23" => 93.5, "6-200-23" => 187,//四川 23
  78. "6-30-25" => 28.05, "6-50-25" => 46.75, "6-100-25" => 93.5, "6-200-25" => 187,//云南 25
  79. ];
  80. }