config.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace refill\dazhanggui_fs;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.101.136.81:10186/plat/api/old/submitorder';
  7. const QUERY_URL= 'http://47.101.136.81:10186/plat/api/old/queryorder';
  8. const BALANCE_URL = 'http://47.101.136.81:10186/plat/api/old/queryBalance';
  9. const USER_ID= '200026';
  10. const KEY = '6dc058584d044b44a995ac98a3520fdf';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_dazhanggui_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. 50 => 1320050,
  26. 100 => 1320100,
  27. 200 => 1320200,
  28. ],
  29. //山东
  30. 15 => [
  31. 50 => 1370050,
  32. 100 => 1370100,
  33. 200 => 1370200,
  34. ],
  35. //贵州
  36. 24 => [
  37. 30 => 1520030,
  38. 50 => 1520050,
  39. 100 => 1520100,
  40. 200 => 1520200,
  41. ],
  42. ],
  43. mtopcard\ChinaTelecomCard => [
  44. //湖南
  45. 18 => [
  46. 30 => 3430030,
  47. 50 => 3430050,
  48. 100 => 3430100,
  49. 200 => 3430200,
  50. ],
  51. ],
  52. ];
  53. //key格式 卡类型-面值-regin_no
  54. const Price = [
  55. //移动
  56. "4-50-10" => 46.8, "4-100-10" => 93.6, "4-200-10" => 187.2,//江苏 10
  57. "4-50-15" => 46.8, "4-100-15" => 93.6, "4-200-15" => 187.2,//山东 15
  58. "4-30-24" => 28.05, "4-50-24" => 46.75, "4-100-24" => 93.5, "4-200-24" => 187,//山东 24
  59. //电信
  60. "6-30-18" => 28.26, "6-50-18" => 47.1, "6-100-18" => 94.2, "6-200-18" => 188.4,//湖南 18
  61. ];
  62. }