123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?php
- namespace refill\hanwei_fs;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://8.136.129.136:10181/plat/api/old/submitorder';
- const QUERY_URL= 'http://8.136.129.136:10181/plat/api/old/queryorder';
- const BALANCE_URL = 'http://8.136.129.136:10181/plat/api/old/queryBalance';
- const USER_ID= '200047';
- const KEY = 'd02432cef19e40239c10820ca7c27a1d';
- const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_hanwei_fs.php";
- const operator = [
- mtopcard\ChinaMobileCard => 1,
- mtopcard\ChinaUnicomCard => 2,
- mtopcard\ChinaTelecomCard => 3
- ];
- const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
- const ERR_NOS = [
- 1000,1001,1003,1004,2001,2002,2003,2020,2021,1006,2030,3003
- ];
- const Product = [
- mtopcard\ChinaMobileCard => [
- //云南
- 25 => [
- 30 => 1530030,
- 50 => 1530050,
- 100 => 1530100,
- 200 => 1530200,
- ],
- //贵州
- 24 => [
- 30 => 1520030,
- 50 => 1520050,
- 100 => 1520100,
- 200 => 1520200,
- ],
- //河南
- 16 => [
- 30 => 1410030,
- 50 => 1410050,
- 100 => 1410100,
- 200 => 1410200,
- ],
- //福建
- 13 => [
- 30 => 1350030,
- 50 => 1350050,
- 100 => 1350100,
- 200 => 1350200,
- ],
- //江苏
- 10 => [
- 30 => 1320030,
- 50 => 1320050,
- 100 => 1320100,
- 200 => 1320200,
- ],
- //河北
- 3 => [
- 50 => 1130050,
- 100 => 1130100,
- 200 => 1130200,
- ],
- //广西
- 20 => [
- 30 => 1450030,
- 50 => 1450050,
- 100 => 1450100,
- 200 => 1450200,
- ],
- //重庆
- 22 => [
- 50 => 1500050,
- 100 => 1500100,
- 200 => 1500200,
- ],
- //四川
- 23 => [
- 50 => 1510050,
- 100 => 1510100,
- 200 => 1510200,
- ],
- //辽宁
- 6 => [
- 30 => 1210030,
- 50 => 1210050,
- 100 => 1210100,
- 200 => 1210200,
- ],
- ],
- mtopcard\ChinaTelecomCard => [
- //广东
- 19 => [
- 30 => 3440030,
- 50 => 3440050,
- 100 => 3440100,
- 200 => 3440200,
- ],
- //福建
- 13 => [
- 30 => 3350030,
- 50 => 3350050,
- 100 => 3350100,
- 200 => 3350200,
- ],
- //安徽
- 12 => [
- 30 => 3340030,
- 50 => 3340050,
- 100 => 3340100,
- 200 => 3340200,
- ],
- //浙江
- 11 => [
- 30 => 3330030,
- 50 => 3330050,
- 100 => 3330100,
- 200 => 3330200,
- ],
- //江苏
- 10 => [
- 30 => 3320030,
- 50 => 3320050,
- 100 => 3320100,
- 200 => 3320200,
- ],
- //四川
- 23 => [
- 30 => 3510030,
- 50 => 3510050,
- 100 => 3510100,
- 200 => 3510200,
- ],
- //天津
- 2 => [
- 30 => 3120030,
- 50 => 3120050,
- 100 => 3120100,
- 200 => 3120200,
- ],
- ],
- ];
- //key格式 卡类型-面值-regin_no
- const Price = [
- //移动
- "4-30-25" => 28.59, "4-50-25" => 47.65, "4-100-25" => 95.3, "4-200-25" => 190.6,//云南 25
- "4-30-24" => 28.2, "4-50-24" => 47, "4-100-24" => 94, "4-200-24" => 188,//贵州 24
- "4-30-16" => 28.65, "4-50-16" => 47.75, "4-100-16" => 95.5, "4-200-16" => 191,//河南 16
- "4-30-13" => 28.26, "4-50-13" => 47.1, "4-100-13" => 94.2, "4-200-13" => 188.4,//福建 13
- "4-30-10" => 28.65, "4-50-10" => 47.75, "4-100-10" => 95.5, "4-200-10" => 191,//江苏 10
- "4-50-3" => 47.5, "4-100-3" => 95, "4-200-3" => 190,//河北 3
- "4-30-20" => 28.5, "4-50-20" => 47.5, "4-100-20" => 95, "4-200-20" => 190,//广西 20
- "4-50-22" => 47.4, "4-100-22" => 94.8, "4-200-22" => 189.6,//重庆 22
- "4-50-23" => 47.4, "4-100-23" => 94.8, "4-200-23" => 189.6,//四川 23
- "4-30-6" => 28.65, "4-50-6" => 47.75, "4-100-6" => 95.5, "4-200-6" => 191,//辽宁 6
- //电信
- "6-30-11" => 28.2, "6-50-11" => 47, "6-100-11" => 94, "6-200-11" => 188,//浙江 11
- "6-30-23" => 28.2, "6-50-23" => 47, "6-100-23" => 94, "6-200-23" => 188,//四川 23
- "6-30-13" => 28.2, "6-50-13" => 47, "6-100-13" => 94, "6-200-13" => 188,//福建 13
- "6-30-10" => 28.38, "6-50-10" => 47.3, "6-100-10" => 94.6, "6-200-10" => 189.2,//江苏 10
- "6-30-2" => 28.38, "6-50-2" => 47.3, "6-100-2" => 94.6, "6-200-2" => 189.2,//天津 2
- "6-30-12" => 28.38, "6-50-12" => 47.3, "6-100-12" => 94.6, "6-200-12" => 189.2,//安徽 12
- "6-30-19" => 28.38, "6-50-19" => 47.3, "6-100-19" => 94.6, "6-200-19" => 189.2,//广东 19
- ];
- }
|