12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace refill\yikatong;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://47.104.217.125/plat/api/cube/commit';
- const QUERY_URL = 'http://47.104.217.125/plat/api/cube/queryorder';
- const BALANCE_URL = 'http://47.104.217.125/plat/api/cube/querybalance';
- const APP_ID = '200005';
- const KEY = '2e11781155e243208eb656e013309767';
- const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yikatong.php";
- const ExtHeaders = ['Content-Type: application/json'];
- const ChannelCode = [
- mtopcard\ChinaMobileCard => 1,
- mtopcard\ChinaUnicomCard => 2,
- mtopcard\ChinaTelecomCard => 3
- ];
- const PRODUCT = [
- mtopcard\ChinaMobileCard => [
- 30 => 1000030,
- 50 => 1000050,
- 100 => 1000100,
- 200 => 1000200,
- ],
- mtopcard\ChinaUnicomCard => [
- 30 => 2000030,
- 50 => 2000050,
- 100 => 2000100,
- 200 => 2000200,
- ],
- mtopcard\ChinaTelecomCard => [
- 30 => 3000030,
- 50 => 3000050,
- 100 => 3000100,
- 200 => 3000200,
- ],
- ];
- const ERRCODES = [
- 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014
- ];
- }
|