config.php 851 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace refill\menggu;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://120.26.80.21:8911/api/order/submit';
  7. const QUERY_URL = 'http://120.26.80.21:8911/api/order/query';
  8. const BALANCE_URL = 'http://120.26.80.21:8911/api/account/balance';
  9. const APP_ID = '1hqLCRUja7';
  10. const APP_SECRET = 'UbZBPJdeXcWaJtgy';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_menggu.php";
  12. const PRODUCT = [
  13. mtopcard\SinopecCard => [
  14. 500 => 100004,
  15. 1000 => 100005
  16. ]
  17. ];
  18. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  19. public static function official_sn($content)
  20. {
  21. $data = explode(':',$content);
  22. if(count($data) > 1) {
  23. return $data[1];
  24. } else {
  25. return '';
  26. }
  27. }
  28. }