12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- namespace refill\youhe_fs;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://118.31.168.250:10186/plat/api/old/submitorder';
- const QUERY_URL= 'http://118.31.168.250:10186/plat/api/old/queryorder';
- const BALANCE_URL = 'http://118.31.168.250:10186/plat/api/old/queryBalance';
- const USER_ID= '200064';
- const KEY = 'c4eace522e51459eb52ad030826bb2c7';
- const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_youhe_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 => [
- //江苏
- 10 => [
- 30 => 1320030,
- 50 => 1320050,
- 100 => 1320100,
- 200 => 1320200,
- ],
- //福建
- 13 => [
- 30 => 1350030,
- 50 => 1350050,
- 100 => 1350100,
- 200 => 1350200,
- ],
- //贵州
- 24 => [
- 30 => 1520030,
- 50 => 1520050,
- 100 => 1520100,
- 200 => 1520200,
- ],
- ],
- mtopcard\ChinaTelecomCard => [
- //山东
- 15 => [
- 30 => 3370030,
- 50 => 3370050,
- 100 => 3370100,
- 200 => 3370200,
- ],
- //四川
- 23 => [
- 30 => 3510030,
- 50 => 3510050,
- 100 => 3510100,
- 200 => 3510200,
- ],
- //云南
- 25 => [
- 30 => 3530030,
- 50 => 3530050,
- 100 => 3530100,
- 200 => 3530200,
- ],
- ],
- ];
- //key格式 卡类型-面值-regin_no
- const Price = [
- //移动
- "4-30-10" => 28.05, "4-50-10" => 46.75, "4-100-10" => 93.5, "4-200-10" => 187,//江苏 10
- "4-30-24" => 28.05, "4-50-24" => 46.75, "4-100-24" => 93.5, "4-200-24" => 187,//贵州 24
- "4-30-13" => 28.05, "4-50-13" => 46.75, "4-100-13" => 93.5, "4-200-13" => 187,//福建 13
- //电信
- "6-30-15" => 28.05, "6-50-15" => 46.75, "6-100-15" => 93.5, "6-200-15" => 187,//山东 15
- "6-30-23" => 28.05, "6-50-23" => 46.75, "6-100-23" => 93.5, "6-200-23" => 187,//四川 23
- "6-30-25" => 28.05, "6-50-25" => 46.75, "6-100-25" => 93.5, "6-200-25" => 187,//云南 25
- ];
- }
|