config.php 1021 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace refill\yamiaoman;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://120.55.90.36:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://120.55.90.36:8911/api/order/query';
  8. const BALANCE_URL = 'http://120.55.90.36:8911/api/account/balance';
  9. const APP_ID = 'zIODZmzSCk';
  10. const APP_SECRET = 'VAkzZAuLgZWDCJGu';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yamiaoman.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 50 => 100111,
  15. 100 => 100025,
  16. 200 => 100026,
  17. ],
  18. mtopcard\ChinaUnicomCard => [
  19. 50 => 100027,
  20. 100 => 100028,
  21. 200 => 100029,
  22. ],
  23. mtopcard\ChinaTelecomCard => [
  24. 50 => 100030,
  25. 100 => 100031,
  26. 200 => 100032,
  27. ],
  28. ];
  29. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  30. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  31. }