config.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace refill\sialan;
  3. use mtopcard;
  4. class config
  5. {
  6. //回调地址需上游配置
  7. const ORDER_URL = 'http://120.27.19.82:9168/api/recharge';
  8. const QUERY_URL = 'http://120.27.19.82/api/query/order';
  9. const BALANCE_URL = 'http://120.27.19.82/api/query/balance';
  10. const API_ID = '16855';
  11. const API_KEY = 'd9057a2dda886bb48244314044df9696';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_sialan.php";
  13. const operator = [
  14. mtopcard\ChinaMobileCard => 2,
  15. mtopcard\ChinaUnicomCard => 3,
  16. mtopcard\ChinaTelecomCard => 4
  17. ];
  18. const product_id = [
  19. mtopcard\ChinaMobileCard => [
  20. 10 => 20001,
  21. 20 => 20002,
  22. 30 => 20003,
  23. 50 => 20004,
  24. 100 => 20005,
  25. 200 => 20006,
  26. 300 => 20007,
  27. 500 => 20008,
  28. ],
  29. mtopcard\ChinaUnicomCard => [
  30. 10 => 20009,
  31. 20 => 20010,
  32. 30 => 20011,
  33. 50 => 20012,
  34. 100 => 20013,
  35. 200 => 20014,
  36. 300 => 20015,
  37. 500 => 20016,
  38. ],
  39. mtopcard\ChinaTelecomCard => [
  40. 10 => 20017,
  41. 20 => 20018,
  42. 30 => 20019,
  43. 50 => 20020,
  44. 100 => 20021,
  45. 200 => 20022,
  46. 300 => 20023,
  47. 500 => 20024,
  48. ]
  49. ];
  50. const ERR_NOS = [
  51. '-10001','-10002','-10003','-10004','-10005','-10006','-10007','-10008','-10009','-10011','-10012','-10013','-10015','-10016','-10017'
  52. ];
  53. }