Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit 890e699

Browse files
committed
some modify
1 parent 66d2e7f commit 890e699

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

src/utils/BDApi.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class BDApi
2020

2121
/**
2222
* ip地址信息查询
23-
* @param stirng $ip ip address
24-
* @param stirng $apikey 百度apikey
23+
* @param string $ip ip address
24+
* @param string $apikey 百度apikey
2525
* @return array
2626
*/
2727
public static function ipInfo($ip, $apikey)
@@ -44,8 +44,8 @@ public static function ipInfo($ip, $apikey)
4444
* carrier: "黑龙江移动" // 运营商
4545
* }
4646
* }
47-
* @param stirng $mobilephone mobile phone number
48-
* @param stirng $apikey 百度apikey
47+
* @param string $mobilephone mobile phone number
48+
* @param string $apikey 百度apikey
4949
* @return array
5050
*/
5151
public static function mobilePhoneInfo($mobilephone, $apikey)
@@ -71,26 +71,26 @@ public static function mobilePhoneInfo($mobilephone, $apikey)
7171
* "suit": "152卡" // 152卡
7272
* }
7373
* }
74-
* @param stirng $mobilenumber mobile phone number
75-
* @param stirng $apikey 百度apikey
74+
* @param string $mobilenumber mobile phone number
75+
* @param string $apikey 百度apikey
7676
* @return array
7777
*/
7878
public static function mobileNumberInfo($mobilenumber, $apikey)
7979
{
8080
$url = self::OPEN_API. '/mobilenumber/mobilenumber';
8181

82-
return self::send($url, ['tel' => $mobilephone], ["apikey: $apikey"]);
82+
return self::send($url, ['tel' => $mobilenumber], ["apikey: $apikey"]);
8383
}
8484

8585
/**
8686
* 彩票种类查询
87-
* @param stirng $lotteryType 彩票类型,
87+
* @param string $lotteryType 彩票类型,
8888
* 1 表示全国彩 e.g. 双色球,七星彩,超级大乐透,
8989
* 2 表示高频彩票,
9090
* 3 表示低频彩票,
9191
* 4 标识境外高频彩票,
9292
* 5 标识境外低频彩票
93-
* @param stirng $apikey 百度apikey
93+
* @param string $apikey 百度apikey
9494
* @return array
9595
*/
9696
public static function lotteryList($lotteryType, $apikey)
@@ -103,8 +103,8 @@ public static function lotteryList($lotteryType, $apikey)
103103
/**
104104
* 提供彩票最新开奖、历史开奖结果查询
105105
*
106-
* @param stirng $lotteryCode 彩票编号,通过彩票种类查询接口可获得
107-
* @param stirng $apikey 百度apikey
106+
* @param string $lotteryCode 彩票编号,通过彩票种类查询接口可获得
107+
* @param string $apikey 百度apikey
108108
* @param int $recordcnt 记录条数,范围为1~20
109109
* @return array
110110
*/
@@ -124,4 +124,4 @@ protected static function send($url, array $params = [], array $headers = [])
124124

125125
return json_decode($res, true);
126126
}
127-
}
127+
}

src/utils/BDWeather.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class BDWeather
2121

2222
/**
2323
* 查询可用城市列表
24-
* @param stirng $apikey 百度apikey
24+
* @param string $apikey 百度apikey
25+
* @param $cityName
2526
* @return array
2627
*/
2728
public static function cityList($apikey, $cityName)
@@ -33,8 +34,8 @@ public static function cityList($apikey, $cityName)
3334

3435
/**
3536
* 天气查询_根据城市拼音
36-
* @param stirng $cityPinyin 城市拼音 e.g. beijing
37-
* @param stirng $apikey 百度apikey
37+
* @param string $cityPinyin 城市拼音 e.g. beijing
38+
* @param string $apikey 百度apikey
3839
* @return array
3940
*/
4041
public static function byCityPinyin($cityPinyin, $apikey)
@@ -46,8 +47,8 @@ public static function byCityPinyin($cityPinyin, $apikey)
4647

4748
/**
4849
* 天气查询_根据城市名称(中文)
49-
* @param stirng $cityName 城市名(中文) e.g. 北京
50-
* @param stirng $apikey 百度apikey
50+
* @param string $cityName 城市名(中文) e.g. 北京
51+
* @param string $apikey 百度apikey
5152
* @return array
5253
*/
5354
public static function byCityName($cityName, $apikey)
@@ -60,9 +61,9 @@ public static function byCityName($cityName, $apikey)
6061
/**
6162
* 天气查询_带历史7天和未来4天
6263
*
63-
* @param stirng $cityName 城市名(中文) e.g. 北京
64-
* @param stirng $cityCode 天气预报城市代码(可通过cityInfo获取到) e.g. 101010100
65-
* @param stirng $apikey 百度apikey
64+
* @param string $cityName 城市名(中文) e.g. 北京
65+
* @param string $cityCode 天气预报城市代码(可通过cityInfo获取到) e.g. 101010100
66+
* @param string $apikey 百度apikey
6667
* @return array
6768
*/
6869
public static function recentWeathers($cityName, $cityCode, $apikey)
@@ -90,8 +91,8 @@ public static function recentWeathers($cityName, $cityCode, $apikey)
9091
* }
9192
* }
9293
*
93-
* @param stirng $cityName 城市名(中文) e.g. 北京
94-
* @param stirng $apikey 百度apikey
94+
* @param string $cityName 城市名(中文) e.g. 北京
95+
* @param string $apikey 百度apikey
9596
* @return array
9697
*/
9798
public static function cityInfo($cityName, $apikey)
@@ -103,7 +104,7 @@ public static function cityInfo($cityName, $apikey)
103104

104105
/**
105106
* 空气质量指数可用城市列表
106-
* @param stirng $apikey 百度apikey
107+
* @param string $apikey 百度apikey
107108
* @return array
108109
*/
109110
public static function aqiCityList($apikey)
@@ -115,8 +116,8 @@ public static function aqiCityList($apikey)
115116

116117
/**
117118
* 空气质量指数
118-
* @param stirng $cityName 城市名(中文) e.g. 北京
119-
* @param stirng $apikey 百度apikey
119+
* @param string $cityName 城市名(中文) e.g. 北京
120+
* @param string $apikey 百度apikey
120121
* @return array
121122
*/
122123
public static function aqi($cityName, $apikey)
@@ -132,4 +133,4 @@ protected static function send($url, array $params = [], array $headers = [])
132133

133134
return json_decode($res, true);
134135
}
135-
}
136+
}

0 commit comments

Comments
 (0)