config.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace refill\dongye;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://8.134.53.93:9086/onlinepay.do';
  7. const QUERY_URL= 'http://8.134.53.93:9086/searchpay.do';
  8. const BALANCE_URL = 'http://8.134.53.93:9086/searchbalance.do';
  9. const USER_ID= '10003105';
  10. const KEY = 'nxmpEYzCQCQMxtAtrihBRSitxHbk63km';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_dongye.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 'yd',
  14. mtopcard\ChinaUnicomCard => 'lt',
  15. mtopcard\ChinaTelecomCard => 'dx'
  16. ];
  17. const ERR_NOS = [
  18. '5001','5002','5003','5004','5005','5008','5009','5010','5011','5012'
  19. ];
  20. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
  21. const product_id = [
  22. // mtopcard\ChinaMobileCard => [
  23. // 5 => '30000005458', 6 => '30000005459', 7 => '30000005460', 8 => '30000005461', 9 => '30000005462',
  24. // 10 => '30000001056', 20 => '30000001057', 30 => '30000001058',
  25. // 100 => '30000001060', 200 => '30000001061', 300 => '30000001062', 500 => '30000001063'
  26. // ],
  27. //移动拼多多资源
  28. mtopcard\ChinaMobileCard => [
  29. 50 => '30000005601',
  30. 100 => '30000005602', 200 => '30000005603', 300 => '30000005604', 500 => '30000005605'
  31. ],
  32. //沃支付
  33. mtopcard\ChinaUnicomCard => [
  34. 30 => '30000001074', 50 => '30000001075', 100 => '30000001076', 200 => '30000001077', 300 => '30000001078'
  35. ],
  36. //掌厅
  37. // mtopcard\ChinaUnicomCard => [
  38. // 50 => '30000005533', 100 => '30000005534', 200 => '30000005535', 300 => '30000005536', 500 => '30000005537'
  39. // ],
  40. mtopcard\ChinaTelecomCard => [
  41. 1 => '30000005430', 2 => '30000005431', 3 => '30000005432', 4 => '30000005433',
  42. 5 => '30000005435', 6 => '30000005436', 7 => '30000005437', 8 => '30000005438', 9 => '30000005439',
  43. 10 => '30000001080', 20 => '30000001081', 30 => '30000001082',
  44. 100 => '30000001084', 200 => '30000001085', 300 => '30000001086', 500 => '30000001087'
  45. ],
  46. ];
  47. }