config.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace refill\oufei;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://apitest.ofpay.com/newOnlineOrder.do';
  7. const QUERY_URL= 'http://apitest.ofpay.com/api/query.do';
  8. const BALANCE_URL = 'http://apitest.ofpay.com/newqueryuserinfo.do';
  9. const USER_ID = 'A08566';
  10. const USER_PWS = 'of111111';
  11. const KEY = 'OFCARD';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_oufei.php";
  13. const operator = [
  14. mtopcard\ChinaMobileCard => 1,
  15. mtopcard\ChinaUnicomCard => 2,
  16. mtopcard\ChinaTelecomCard => 3
  17. ];
  18. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  19. const ERR_NOS = [
  20. 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 319, 321, 331, 9998, 4001
  21. ];
  22. const Product = [
  23. mtopcard\ChinaMobileCard => [
  24. 10 => 1000010,
  25. 20 => 1000020,
  26. 50 => 1000050,
  27. 100 => 1000100,
  28. 200 => 1000200,
  29. ],
  30. mtopcard\ChinaUnicomCard => [
  31. 30 => 2000030,
  32. 50 => 2000050,
  33. 100 => 2000100,
  34. 200 => 2000200,
  35. 300 => 2000300,
  36. 500 => 2000500,
  37. ],
  38. mtopcard\ChinaTelecomCard => [
  39. 30 => 3000030,
  40. 50 => 3000050,
  41. 100 => 3000100,
  42. 200 => 3000200,
  43. ],
  44. ];
  45. }