Commit ab9b3a5c authored by liuyuzhen's avatar liuyuzhen

省市测试

parent 62da0b21
...@@ -8,9 +8,10 @@ namespace Area; ...@@ -8,9 +8,10 @@ namespace Area;
*/ */
class AreaUtil { class AreaUtil {
public function getIpCityInfo($ip = false){ public function getIpCityInfo($ip = ''){
if($ip==false){ if(!$ip){
$ip =\Our\Common::getIP(); $ip =\Our\Common::getIP();
var_dump($ip);
} }
$cityData = \Our\Common::getIpCity($ip); $cityData = \Our\Common::getIpCity($ip);
$provinceId = \Our\ApiConst::zero; $provinceId = \Our\ApiConst::zero;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment