config.php 1014 B

1234567891011121314151617181920212223242526272829303132333435
  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. 50 => 100039,
  20. 100 => 100040,
  21. 200 => 100041
  22. ],
  23. mtopcard\ChinaTelecomCard => [
  24. 50 => 100045,
  25. 100 => 100046,
  26. 200 => 100047
  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. }