123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace refill\sialan;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://39.98.234.165/api/do';
- const QUERY_URL = 'http://39.98.234.165/api/queryorder';
- const BALANCE_URL = 'http://39.98.234.165/api/querybalance';
- const CPID = '39780';
- const CPKEY = '966cbd556c90ae75d';
- const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_sialan.php";
- const operator = [
- mtopcard\ChinaMobileCard => 1,
- mtopcard\ChinaUnicomCard => 2,
- mtopcard\ChinaTelecomCard => 3
- ];
- const product_id = [
- mtopcard\ChinaMobileCard => [
- 10 => 20001,
- 20 => 20002,
- 30 => 20003,
- 50 => 20004,
- 100 => 20005,
- 200 => 20006,
- 300 => 20007,
- 500 => 20008,
- ],
- mtopcard\ChinaUnicomCard => [
- 10 => 20009,
- 20 => 20010,
- 30 => 20011,
- 50 => 20012,
- 100 => 20013,
- 200 => 20014,
- 300 => 20015,
- 500 => 20016,
- ],
- mtopcard\ChinaTelecomCard => [
- 10 => 20017,
- 20 => 20018,
- 30 => 20019,
- 50 => 20020,
- 100 => 20021,
- 200 => 20022,
- 300 => 20023,
- 500 => 20024,
- ]
- ];
- const ERR_NOS = [
- -10001,-10002,-10003,-10004,-10013,-10005,-10006,-10007,-10008,-10009,-10011,-10012,-10015,-10016
- ];
- }
|