123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace refill\quanzhen_hf_man;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://payapi.eyunpay.com/open/api/hf/recharge';
- const QUERY_URL = 'http://payapi.eyunpay.com/open/api/hf/query';
- const BALANCE_URL = 'http://payapi.eyunpay.com/open/api/hf/queryFee';
- const APP_ID = 'wp1685346685673';
- const APP_KEY = 'wiXM7vVCBiO9rw3nvQE8NWwn17NFXrok';
- const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_quanzhen_hf_man.php";
- const ExtHeaders = ['Content-Type: application/json'];
- const operator = [
- mtopcard\ChinaMobileCard => '1',
- mtopcard\ChinaUnicomCard => '2',
- mtopcard\ChinaTelecomCard => '3'
- ];
- public static function sign($params)
- {
- ksort($params);
- $content = '';
- foreach ($params as $key => $value) {
- $content .= "{$key}={$value}&";
- }
- $content .= 'key='.config::APP_KEY;
- return md5($content);
- }
- }
|