123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <?php
- namespace refill\yuntian_fs;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://47.108.209.201/flow-receiver/api/recharge/feecbk';
- const QUERY_URL = 'http://47.108.209.201/flow-receiver/api/query/feecbk';
- const BALANCE_URL = 'http://47.108.209.201/flow-receiver/api/balance/feecbk';
- const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_yuntian_fs.php';
- const ACCOUNT = 'ytyzfs';
- const KEY = '14f3825aba8d4ee3bb74d1bca607acb4';
- const operator = [
- mtopcard\ChinaMobileCard => 'CMCC',
- mtopcard\ChinaUnicomCard => 'CUCC',
- mtopcard\ChinaTelecomCard => 'CTCC'
- ];
- const ProductIDS = [
- mtopcard\ChinaMobileCard => [
- //广西
- 20 => [
- 50 => 'CMCCGXr50r',
- 100 => 'CMCCGXr100r',
- 200 => 'CMCCGXr200r'
- ],
- //福建
- 13 => [
- 50 => 'CMCCFJr50r',
- 100 => 'CMCCFJr100r',
- 200 => 'CMCCFJr200r'
- ],
- //江西
- 14 => [
- 50 => 'CMCCJXr50r',
- 100 => 'CMCCJXr100r',
- 200 => 'CMCCJXr200r',
- ],
- //四川
- 23 => [
- 50 => 'CMCCSCr50r',
- 100 => 'CMCCSCr100r',
- 200 => 'CMCCSCr200r',
- ],
- //贵州
- 24 => [
- 50 => 'CMCCGZr50r',
- 100 => 'CMCCGZr100r',
- 200 => 'CMCCGZr200r'
- ],
- //云南
- 25 => [
- 50 => 'CMCCYNr50r',
- 100 => 'CMCCYNr100r',
- 200 => 'CMCCYNr200r'
- ],
- //黑龙江
- 8 => [
- 50 => 'CMCCHLJr50r',
- 100 => 'CMCCHLJr100r',
- 200 => 'CMCCHLJr200r',
- ],
- //甘肃
- 28 => [
- 50 => 'CMCCGSr50r',
- 100 => 'CMCCGSr100r',
- 200 => 'CMCCGSr200r',
- ],
- //河南
- 16 => [
- 50 => 'CMCCYUr50r',
- 100 => 'CMCCYUr100r',
- 200 => 'CMCCYUr200r'
- ],
- //江苏
- 10 => [
- 50 => 'CMCCJSr50r',
- 100 => 'CMCCJSr100r',
- 200 => 'CMCCJSr200r'
- ],
- //湖北
- 17 => [
- 50 => 'CMCCHBr50r',
- 100 => 'CMCCHBr100r',
- 200 => 'CMCCHBr200r',
- ],
- //浙江
- 11 => [
- 50 => 'CMCCZJr50r',
- 100 => 'CMCCZJr100r',
- 200 => 'CMCCZJr200r'
- ],
- ],
- mtopcard\ChinaTelecomCard => [
- //天津
- 2 => [
- 50 => 'CTCCTJr50r',
- 100 => 'CTCCTJr100r',
- 200 => 'CTCCTJr200r'
- ],
- //湖北
- 17 => [
- 30 => 'CTCCHBr30r',
- 50 => 'CTCCHBr50r',
- 100 => 'CTCCHBr100r',
- 200 => 'CTCCHBr200r',
- ],
- //湖南
- 18 => [
- 30 => 'CTCCHNr30r',
- 50 => 'CTCCHNr50r',
- 100 => 'CTCCHNr100r',
- 200 => 'CTCCHNr200r'
- ],
- //四川
- 23 => [
- 30 => 'CTCCSCr30r',
- 50 => 'CTCCSCr50r',
- 100 => 'CTCCSCr100r',
- 200 => 'CTCCSCr200r'
- ],
- //江苏
- 10 => [
- 30 => 'CTCCJSr30r',
- 50 => 'CTCCJSr50r',
- 100 => 'CTCCJSr100r',
- 200 => 'CTCCJSr200r'
- ],
- //新疆
- 31 => [
- 30 => 'CTCCXJr30r',
- 50 => 'CTCCXJr50r',
- 100 => 'CTCCXJr100r',
- 200 => 'CTCCXJr200r',
- ],
- //广东
- 19 => [
- 30 => 'CTCCGDr30r',
- 50 => 'CTCCGDr50r',
- 100 => 'CTCCGDr100r',
- 200 => 'CTCCGDr200r'
- ],
- ]
- ];
- const NotifyErrCodes = [
- '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','025','027','028','098','099'
- ];
- const QueryErrCodes = [
- '003','004','005','006','007','008','015','016','017','018','019','020','021','022','023','024','025','026','027','028','098','099'
- ];
- const Price = [
- // 移动
- "4-50-20" => 48, "4-100-20" => 96, "4-200-20" => 192,//广西 20
- "4-50-13" => 48, "4-100-13" => 96, "4-200-13" => 192,//福建 13
- "4-50-14" => 47.75, "4-100-14" => 95.5, "4-200-14" => 191,//江西 14
- "4-50-23" => 48, "4-100-23" => 96, "4-200-23" => 192,//四川 23
- "4-50-24" => 48, "4-100-24" => 96, "4-200-24" => 192,//贵州 24
- "4-50-25" => 48, "4-100-25" => 96, "4-200-25" => 192,//云南 25
- "4-50-8" => 47.75, "4-100-8" => 95.5, "4-200-8" => 191,//黑龙江 8
- "4-50-28" => 47.75, "4-100-28" => 95.5, "4-200-28" => 191,//甘肃 28
- "4-50-16" => 48, "4-100-16" => 96, "4-200-16" => 192,//河南 16
- "4-50-10" => 47.75, "4-100-10" => 95.5, "4-200-10" => 191,//江苏 10
- "4-50-17" => 47.75, "4-100-17" => 95.5, "4-200-17" => 191,//湖北 17
- "4-50-11" => 48, "4-100-11" => 96, "4-200-11" => 192,//浙江 11
- "6-50-2" => 47.25, "6-100-2" => 94.5, "6-200-2" => 189,//天津 2
- "6-30-17" => 28.5, "6-50-17" => 47.5, "6-100-17" => 95, "6-200-17" => 190,//湖北 17
- "6-30-18" => 28.8, "6-50-18" => 48, "6-100-18" => 96, "6-200-18" => 192,//湖南 18
- "6-30-23" => 28.8, "6-50-23" => 48, "6-100-23" => 96, "6-200-23" => 192,//四川 23
- "6-30-10" => 28.65, "6-50-10" => 47.75, "6-100-10" => 95.5, "6-200-10" => 191,//江苏 10
- "6-30-31" => 28.8, "6-50-31" => 48, "6-100-31" => 96, "6-200-31" => 192,//新疆 31
- "6-30-19" => 28.8, "6-50-19" => 48, "6-100-19" => 96, "6-200-19" => 192,//广东 19
- ];
- }
|