config.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace refill\xunyinoil;
  3. use mtopcard;
  4. class config
  5. {
  6. //https://docs.qq.com/doc/DYm5iQmlUb01tVXln
  7. const PAY_PHONE_URL = 'https://openapi.xunyin.com/openapi/submit';
  8. const QUERY_URL= 'https://openapi.xunyin.com/openapi/query';
  9. const BALANCE_URL= 'http://openapi.xunyin.com/openapi/QueryMerchant';
  10. const CP_ID= '8417';
  11. const KEY = 'd4317a37ad90bc38cd346c6ad3056a7f';
  12. const API_IP = NET_IP;
  13. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_xunyinoil.php";
  14. const GoodsId = [
  15. mtopcard\PetroChinaCard => [
  16. 50 => 15325,
  17. 100 => 15326,
  18. 200 => 15327,
  19. 500 => 15328,
  20. 1000 => 15329
  21. ],
  22. mtopcard\SinopecCard => [
  23. 50 => 15312,
  24. 100 => 15313,
  25. 200 => 15314,
  26. 500 => 15315,
  27. 1000 => 15316
  28. ]
  29. ];
  30. const ERR_CODE = [
  31. '8001','8002','8003','8004','8005','8006','8007','8009','8011','8012','8013','8016','8020','9001','9002','9003','9004','9005','9006'
  32. ];
  33. }