Commit b26db409 authored by christ's avatar christ

test

parent 44acc7af
......@@ -12,9 +12,15 @@ class CityController extends \Our\Controller_AbstractIndex {
}
public function getCityListAction(){
if($_POST['data']['debug']==1){
echo "开始时间:".microtime()."\r\n";
}
$fromWx = $this->req[\Our\NameConst::data]['fromWx'];
$addressService = \Business\User\AddressServiceModel::getInstance();
$cityList = $addressService->getCityList($fromWx);
if($_POST['data']['debug']==1){
echo "结束时间:".microtime()."\r\n";
}
$this->success($cityList);
}
}
\ No newline at end of file
......@@ -467,14 +467,10 @@ class AddressServiceModel extends \Business\AbstractModel {
if($fromWx){
$citList = $areaDao->getCityListWithoutCounty();
}else{
if($_POST['data']['debug']==1){
echo "开始时间:".microtime()."\r\n";
}
$citList = $areaDao->getCityList();
if($_POST['data']['debug']==1){
echo "结束时间:".microtime()."\r\n";
}
}
if($citList){
......
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