123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- namespace refill\dongyefs;
- use mtopcard;
- class config
- {
- const ORDER_URL = 'http://8.134.53.93:9086/onlinepay.do';
- const QUERY_URL= 'http://8.134.53.93:9086/searchpay.do';
- const BALANCE_URL = 'http://8.134.53.93:9086/searchbalance.do';
- const USER_ID= '10003125';
- const KEY = '82dkkhEaR6GhchQkhS5SiffF2w8yX4wQ';
- const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_dongyefs.php";
- const operator = [
- mtopcard\ChinaMobileCard => 'yd',
- mtopcard\ChinaUnicomCard => 'lt',
- mtopcard\ChinaTelecomCard => 'dx'
- ];
- const ERR_NOS = [
- '5001','5002','5003','5004','5005','5008','5009','5010','5011','5012'
- ];
- const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
- const product_id = [
- mtopcard\ChinaMobileCard => [
- 6 => [
- 10 => '30000005109', 20 => '30000005110', 30 => '30000005111', 50 => '30000005112',
- 100 => '30000005113', 200 => '30000005114', 300 => '30000005115', 500 => '30000005116'
- ],//辽宁
- 7 => [
- 30 => '30000005408', 50 => '30000005409',
- 100 => '30000005410', 200 => '30000005411', 300 => '30000005412', 500 => '30000005413'
- ],//吉林
- 9 => [
- 10 => '30000005318', 20 => '30000005319', 30 => '30000005320', 50 => '30000005321',
- 100 => '30000005322', 200 => '30000005323', 300 => '30000005324', 500 => '30000005325'
- ],//上海
- 13 => [
- 10 => '30000005710', 20 => '30000005711', 30 => '30000005712', 50 => '30000005713',
- 100 => '30000005714', 200 => '30000005715', 300 => '30000005716', 500 => '30000005717'
- ],//福建
- 19 => [
- 10 => '30000005117', 20 => '30000005118', 30 => '30000005119', 50 => '30000005120',
- 100 => '30000005121', 200 => '30000005122', 300 => '30000005123', 500 => '30000005124'
- ],//广东
- 29 => [
- 10 => '30000005326', 20 => '30000005327', 30 => '30000005328', 50 => '30000005329',
- 100 => '30000005330', 200 => '30000005331', 300 => '30000005332', 500 => '30000005333'
- ],//青海
- 8 => [
- 10 => '30000005630', 20 => '30000005631', 30 => '30000005632', 50 => '30000005638',
- 100 => '30000005634', 200 => '30000005635', 300 => '30000005636', 500 => '30000005637'
- ],//黑龙江
- 5 => [
- 50 => '30000005613',
- 100 => '30000005614', 200 => '30000005615', 300 => '30000005616', 500 => '30000005617'
- ],//内蒙古
- ],
- mtopcard\ChinaTelecomCard => [
- 12 => [
- 10 => '30000005747', 20 => '30000005748', 30 => '30000005749', 50 => '30000005750',
- 100 => '30000005751', 200 => '30000005752', 300 => '30000005753', 500 => '30000005754'
- ],//安徽
- 16 => [
- 10 => '30000005763', 20 => '30000005764', 30 => '30000005765', 50 => '30000005766',
- 100 => '30000005767', 200 => '30000005768', 300 => '30000005769', 500 => '30000005770'
- ],//河南
- 18 => [
- 10 => '30000005755', 20 => '30000005756', 30 => '30000005757', 50 => '30000005758',
- 100 => '30000005759', 200 => '30000005760', 300 => '30000005761', 500 => '30000005762'
- ],//湖南
- ]
- ];
- //key格式 卡类型-面值-regin_no
- const Price = [
- //移动
- "4-10-6" => 9.7, "4-20-6" => 19.4, "4-30-6" => 29.1, "4-50-6" => 48.5, "4-100-6" => 97, "4-200-6" => 194, "4-300-6" => 291, "4-500-6" => 485,//辽宁 6
- "4-30-7" => 29.73, "4-50-7" => 49.55, "4-100-7" => 99.1, "4-200-7" => 198.2, "4-300-7" => 297.3, "4-500-7" => 495.5,//吉林 7
- "4-10-9" => 9.91, "4-20-9" => 19.82, "4-30-9" => 29.73, "4-50-9" => 49.55, "4-100-9" => 99.1, "4-200-9" => 198.2, "4-300-9" => 297.3, "4-500-9" => 495.5,//上海 9
- "4-10-13" => 9.89, "4-20-13" => 19.78, "4-30-13" => 29.67, "4-50-13" => 49.45, "4-100-13" => 98.9, "4-200-13" => 197.8, "4-300-13" => 296.7, "4-500-13" => 494.5,//福建 13
- "4-10-19" => 9.95, "4-20-19" => 19.9, "4-30-19" => 29.85, "4-50-19" => 49.75, "4-100-19" => 99.5, "4-200-19" => 199, "4-300-19" => 298.5, "4-500-19" => 497.5,//广东 19
- "4-10-29" => 9.8, "4-20-29" => 19.6, "4-30-29" => 29.4, "4-50-29" => 49, "4-100-29" => 98, "4-200-29" => 196, "4-300-29" => 294, "4-500-29" => 490,//青海 29
- "4-10-8" => 10, "4-20-8" => 20, "4-30-8" => 30, "4-50-8" => 50, "4-100-8" => 100, "4-200-8" => 200, "4-300-8" => 300, "4-500-8" => 500,//黑龙江 8
- "4-50-5" => 50.1, "4-100-5" => 100.2, "4-200-5" => 200.4, "4-300-5" => 300.6, "4-500-5" => 501,//内蒙古 5
- //电信
- "6-10-12" => 10.065, "6-20-12" => 20.13, "6-30-12" => 30.195, "6-50-12" => 50.225, "6-100-12" => 100.45, "6-200-12" => 200.9, "6-300-12" => 301.35, "6-500-12" => 502.25,//安徽 12
- "6-10-16" => 10.065, "6-20-16" => 20.13, "6-30-16" => 30.195, "6-50-16" => 50.225, "6-100-16" => 100.45, "6-200-16" => 200.9, "6-300-16" => 301.35, "6-500-16" => 502.25,//河南 16
- "6-10-18" => 10.065, "6-20-18" => 20.13, "6-30-18" => 30.195, "6-50-18" => 50.225, "6-100-18" => 100.45, "6-200-18" => 200.9, "6-300-18" => 301.35, "6-500-18" => 502.25,//湖南 18
- ];
- }
|