12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace refill\tianchen_fs;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://47.114.98.104:10081/plat/api/px/submit';
- const QUERY_URL = 'http://47.114.98.104:10081/plat/api/px/query';
- const BALANCE_URL = 'http://47.114.98.104:10081/plat/api/px/balance';
- const MCHID = '100126';
- const KEY = '35941f02ca474a3f9d542f5ccccb9747';
- const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_tianchen_fs.php";
- const operator = [
- mtopcard\ChinaMobileCard => 1,
- mtopcard\ChinaUnicomCard => 2,
- mtopcard\ChinaTelecomCard => 3
- ];
- const ExtHeaders = ['Content-Type: application/json'];
- //key格式 卡类型-面值-regin_no
- const Price = [
- //移动
- "4-10-8" => 10.025, "4-20-8" => 20.05, "4-30-8" => 30.075, "4-50-8" => 50.125, "4-100-8" => 100.25, "4-200-8" => 200.5, "4-300-8" => 300.75, "4-500-8" => 501.25,//黑龙江 8
- "4-10-6" => 9.795, "4-20-6" => 19.59, "4-30-6" => 29.385, "4-50-6" => 48.975, "4-100-6" => 97.95, "4-200-6" => 195.9, "4-300-6" => 293.85, "4-500-6" => 489.75,//辽宁 6
- "4-10-19" => 9.965, "4-20-19" => 19.93, "4-30-19" => 30.03, "4-50-19" => 50.05, "4-100-19" => 100.1, "4-200-19" => 200.2, "4-300-19" => 300.3, "4-500-19" => 500.5,//广东 19
- "4-10-9" => 9.92, "4-20-9" => 19.84, "4-30-9" => 29.76, "4-50-9" => 49.6, "4-100-9" => 99.2,//上海 9
- "4-10-29" => 9.86, "4-20-29" => 19.72, "4-30-29" => 29.58, "4-50-29" => 49.3, "4-100-29" => 98.6, "4-200-29" => 197.2, "4-300-29" => 295.8, "4-500-29" => 493,//青海 29
- //电信
- "6-10-27" => 9.94, "6-20-27" => 19.88, "6-30-27" => 29.82, "6-50-27" => 49.7, "6-100-27" => 99.4, "6-200-27" => 198.8,//陕西 27
- "6-50-18" => 50.25, "6-100-18" => 100.5, "6-200-18" => 201, "6-300-18" => 301.5, "6-500-18" => 502.5,//湖南 18
- "6-50-12" => 50.25, "6-100-12" => 100.5, "6-200-12" => 201, "6-300-12" => 301.5, "6-500-12" => 502.5,//安徽 12
- ];
- }
|