config.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. namespace refill\fengsheng_fs;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.98.53.152:16188/plat/api/hf/submitorder';
  7. const QUERY_URL= 'http://47.98.53.152:16188/plat/api/queryorder';
  8. const BALANCE_URL = 'http://47.98.53.152:16188/plat/api/querybalance';
  9. const USER_ID= '100010';
  10. const KEY = 'd5e286e4bcfa4866b93c8f81e97e1307';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_fengsheng_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. 27 => [
  25. 50 => 1610050,
  26. 100 => 1610100,
  27. 200 => 1610200,
  28. ],
  29. ],
  30. mtopcard\ChinaUnicomCard => [
  31. ],
  32. mtopcard\ChinaTelecomCard => [
  33. //甘肃
  34. 28 => [
  35. 50 => 3620050,
  36. 100 => 3620100,
  37. 200 => 3620200,
  38. ],
  39. //天津
  40. 2 => [
  41. 50 => 3120050,
  42. 100 => 3120100,
  43. 200 => 3120200,
  44. ],
  45. //广东
  46. 19 => [
  47. 50 => 3440050,
  48. 100 => 3440100,
  49. 200 => 3440200,
  50. ],
  51. //湖南
  52. 18 => [
  53. 50 => 3430050,
  54. 100 => 3430100,
  55. 200 => 3430200,
  56. ],
  57. //江西
  58. 14 => [
  59. 50 => 3360050,
  60. 100 => 3360100,
  61. 200 => 3360200,
  62. ],
  63. //海南
  64. 21 => [
  65. 50 => 3460050,
  66. 100 => 3460100,
  67. 200 => 3460200,
  68. ],
  69. ]
  70. ];
  71. //key格式 卡类型-面值-regin_no
  72. const Price = [
  73. //移动
  74. "4-50-27" => 47.25, "4-100-27" => 94.5, "4-200-27" => 189, //陕西
  75. //电信
  76. "6-50-28" => 47.1, "6-100-28" => 94.2, "6-200-28" => 188.4, //甘肃
  77. "6-50-2" => 47.1, "6-100-2" => 94.2, "6-200-2" => 188.4, //天津
  78. "6-50-19" => 47.1, "6-100-19" => 94.2, "6-200-19" => 188.4, //广东
  79. "6-50-18" => 47.1, "6-100-18" => 94.2, "6-200-18" => 188.4, //湖南
  80. "6-50-14" => 47.1, "6-100-14" => 94.2, "6-200-14" => 188.4, //江西
  81. "6-50-21" => 47.1, "6-100-21" => 94.2, "6-200-21" => 188.4, //海南
  82. ];
  83. }