config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace refill\runpu;
  3. use mtopcard;
  4. class config
  5. {
  6. //http://www.firstsup.net/showdoc
  7. const ORDER_URL = 'http://123.57.216.254:9086/onlinepay.do';
  8. const QUERY_URL= 'http://123.57.216.254:9086/searchpay.do';
  9. const BALANCE_URL = 'http://123.57.216.254:9086/searchbalance.do';
  10. const USER_ID= '10005984';
  11. const KEY = 'z26Stz8XXyQx7bFyZbr6RxPBekepA3fy';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_runpu.php";
  13. const operator = [
  14. mtopcard\ChinaMobileCard => 'yd',
  15. mtopcard\ChinaUnicomCard => 'lt',
  16. mtopcard\ChinaTelecomCard => 'dx'
  17. ];
  18. const ERR_NOS = [
  19. '5001','5002','5003','5004','5005','5008','5009','5010','5011','5012'
  20. ];
  21. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
  22. const Amounts = [
  23. '17639' => 5,
  24. '17148' => 7,
  25. '17291' => 12,
  26. '17293' => 16,
  27. '17294' => 30,
  28. '30000001650' => 24,
  29. '15009' => 20,
  30. '30000002330' => 55,
  31. '17595' => 80,
  32. '30000001473' => 10,
  33. '30000001474' => 10,
  34. '30000001475' => 30,
  35. '15585' => 15,
  36. '15587' => 30,
  37. '17621' => 60,
  38. '17479' => 80,
  39. ];
  40. }