<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                # TP5實戰源碼--應用緩存獲取城市信息 直接上源碼 ~~~ /** * 獲取城市下屬地址分類信息 * Power by Mikkle * QQ:776329498 * @param string $cityid * @return array|mixed */ public function superCityPlace($cityid=""){ $this->cache = false; if (empty($cityid)||!is_numeric($cityid)){ return self::showReturnCodeWithOutData(1003); } if ($this->cache==true && Cache::has("city_place_$cityid")){ return Cache::get("city_place_$cityid"); }else{ $area=Db::table("my_area")->where(["cityid"=>$cityid])->field("areaid,areaname")->order('displayorder')->select(); $place = [] ; foreach($area as $item=>$value ){ $street_list = $this->getStreetByAreaid($value["areaid"]); if ($street_list){ $place[]=[ "areaid"=>$value["areaid"], "areaname"=>$value["areaname"], "street_list"=>$this->getStreetByAreaid($value["areaid"]), ]; } } Cache::set("city_place_$cityid",$place); return self::showReturnCode(1001,$place ); } } /** * Power by Mikkle * QQ:776329498 * @param $areaid * @return array|false|mixed|\PDOStatement|string|\think\Collection */ private function getStreetByAreaid($areaid){ if (empty($areaid)||!is_numeric($areaid)){ return []; }else{ if ($this->cache==true && Cache::has("area_place_$areaid")){ return Cache::get("area_place_$areaid"); }else { $place=Db::table("my_street")->where(["areaid" => $areaid])->field("streetid,streetname")->order('displayorder')->select(); Cache::set("area_place_$areaid", $place); return $place; } } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看