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.01, "4-20-8" => 20.02, "4-30-8" => 30.03, "4-50-8" => 50.05, "4-100-8" => 100.1, "4-200-8" => 200.2,//黑龙江 8
- "4-10-6" => 9.76, "4-20-6" => 19.52, "4-30-6" => 29.28, "4-50-6" => 48.8, "4-100-6" => 97.6, "4-200-6" => 195.2, "4-300-6" => 292.8, "4-500-6" => 488,//辽宁 6
- "4-10-19" => 9.965, "4-20-19" => 19.93, "4-30-19" => 29.88, "4-50-19" => 49.8, "4-100-19" => 99.6, "4-200-19" => 199.2, "4-300-19" => 298.8, "4-500-19" => 498,//广东 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.75, "4-20-29" => 19.5, "4-30-29" => 29.25, "4-50-29" => 48.75, "4-100-29" => 97.5, "4-200-29" => 195, "4-300-29" => 292.5, "4-500-29" => 487.5,//青海 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
- ];
- }
|