config.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. namespace refill\jiaqi_fs;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.97.90.81:1008/plat/api/hf/submitorder';
  7. const QUERY_URL= 'http://47.97.90.81:1008/plat/api/queryorder';
  8. const BALANCE_URL = 'http://47.97.90.81:1008/plat/api/querybalance';
  9. const USER_ID= '200006';
  10. const KEY = '596624835c58414fb867968104efd529';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_jiaqi_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. 20 => [
  25. 50 => 1450050,
  26. 100 => 1450100,
  27. 200 => 1450200,
  28. ],
  29. ],
  30. mtopcard\ChinaTelecomCard => [
  31. //广东
  32. 19 => [
  33. 30 => 3440030,
  34. 50 => 3440050,
  35. 100 => 3440100,
  36. 200 => 3440200,
  37. ],
  38. //江苏
  39. 10 => [
  40. 30 => 3320030,
  41. 50 => 3320050,
  42. 100 => 3320100,
  43. 200 => 3320200,
  44. ],
  45. //福建
  46. 13 => [
  47. 30 => 3350030,
  48. 50 => 3350050,
  49. 100 => 3350100,
  50. 200 => 3350200,
  51. ],
  52. //四川
  53. 23 => [
  54. 30 => 3510030,
  55. 50 => 3510050,
  56. 100 => 3510100,
  57. 200 => 3510200,
  58. ],
  59. ],
  60. ];
  61. //key格式 卡类型-面值-regin_no
  62. const Price = [
  63. //移动
  64. "4-50-20" => 47, "4-100-20" => 94, "4-200-20" => 188,//广西 20
  65. //电信
  66. "6-30-19" => 28.2, "6-50-19" => 47, "6-100-19" => 94, "6-200-19" => 188,//广东 19
  67. "6-30-10" => 28.2, "6-50-10" => 47, "6-100-10" => 94, "6-200-10" => 188,//江苏 10
  68. "6-30-13" => 27.78, "6-50-13" => 46.3, "6-100-13" => 92.6, "6-200-13" => 185.2,//福建 13
  69. "6-30-23" => 27.9, "6-50-23" => 46.5, "6-100-23" => 93, "6-200-23" => 186,//四川 23
  70. ];
  71. }