config.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace refill\tianchen_fs;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://47.114.98.104:10081/plat/api/px/submit';
  7. const QUERY_URL = 'http://47.114.98.104:10081/plat/api/px/query';
  8. const BALANCE_URL = 'http://47.114.98.104:10081/plat/api/px/balance';
  9. const MCHID = '100126';
  10. const KEY = '35941f02ca474a3f9d542f5ccccb9747';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_tianchen_fs.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 1,
  14. mtopcard\ChinaUnicomCard => 2,
  15. mtopcard\ChinaTelecomCard => 3
  16. ];
  17. const ExtHeaders = ['Content-Type: application/json'];
  18. //key格式 卡类型-面值-regin_no
  19. const Price = [
  20. //移动
  21. "4-10-8" => 10.01, "4-20-8" => 20.02, "4-30-8" => 30.03, "4-50-8" => 50.05, "4-100-8" => 100.1, "4-200-8" => 200.2,//黑龙江 8
  22. "4-10-6" => 9.76, "4-20-6" => 19.52, "4-30-6" => 29.28, "4-50-6" => 48.8, "4-100-6" => 97.6, "4-200-6" => 195.2, "4-300-6" => 292.8, "4-500-6" => 488,//辽宁 6
  23. "4-10-19" => 9.965, "4-20-19" => 19.93, "4-30-19" => 29.895, "4-50-19" => 49.825, "4-100-19" => 99.65, "4-200-19" => 199.3, "4-300-19" => 298.95, "4-500-19" => 498.25,//广东 19
  24. "4-10-9" => 9.92, "4-20-9" => 19.84, "4-30-9" => 29.76, "4-50-9" => 49.6, "4-100-9" => 99.2,//上海 9
  25. "4-10-29" => 9.82, "4-20-29" => 19.64, "4-30-29" => 29.46, "4-50-29" => 49.1, "4-100-29" => 98.2, "4-200-29" => 196.4, "4-300-29" => 294.6, "4-500-29" => 491,//青海 29
  26. //电信
  27. "6-10-27" => 9.94, "6-20-27" => 19.88, "6-30-27" => 29.82, "6-50-27" => 49.7, "6-100-27" => 99.4, "6-200-27" => 198.8,//陕西 27
  28. "6-50-18" => 50.25, "6-100-18" => 100.5, "6-200-18" => 201, "6-300-18" => 301.5, "6-500-18" => 502.5,//湖南 18
  29. "6-50-12" => 50.25, "6-100-12" => 100.5, "6-200-12" => 201, "6-300-12" => 301.5, "6-500-12" => 502.5,//安徽 12
  30. ];
  31. }