config.php 960 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace refill\yuanta;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://59.110.225.82:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://59.110.225.82:8911/api/order/query';
  8. const BALANCE_URL = 'http://59.110.225.82:8911/api/account/balance';
  9. const APP_ID = 'Uar9JIo4Zz';
  10. const APP_SECRET = 'qXRRTTqrtAwwwtXp';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yuanta.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 50 => 100033,
  15. 100 => 100034,
  16. 200 => 100035
  17. ],
  18. mtopcard\ChinaUnicomCard => [
  19. 100 => 100040,
  20. 200 => 100041
  21. ],
  22. mtopcard\ChinaTelecomCard => [
  23. 100 => 100046,
  24. 200 => 100047
  25. ],
  26. ];
  27. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  28. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  29. }