config.php 775 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace refill\quanzhen;
  3. class config
  4. {
  5. const ORDER_URL = 'http://payapi.eyunpay.com/open/api/jy/recharge';
  6. const QUERY_URL = 'http://payapi.eyunpay.com/open/api/jy/query';
  7. const BALANCE_URL = 'http://payapi.eyunpay.com/open/api/jy/queryFee';
  8. const APP_ID = 'WP1680594711360';
  9. const APP_KEY = 'Gt0bsHq0YWP3SlsXOnPLorok2QEPHjAA';
  10. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_quanzhen.php";
  11. const ExtHeaders = ['Content-Type: application/json'];
  12. public static function sign($params)
  13. {
  14. ksort($params);
  15. $content = '';
  16. foreach ($params as $key => $value) {
  17. $content .= "{$key}={$value}&";
  18. }
  19. $content .= 'key='.config::APP_KEY;
  20. return md5($content);
  21. }
  22. }