[0] HttpException in Sale.php line 375

404 NOT FOUND

  1. $real_estate_model = \think\Loader::model('RealEstate', 'logic');
  2. //查詢二手房詳情
  3. //$second_hand_house = $real_estate_model->get_second_house_detail_by_id($id);
  4. $second_hand_house = $real_estate_model->fetch_detail($id);
  5. //不存在的信息 404
  6. if (count($second_hand_house) == 0) {
  7. throw new \think\exception\HttpException(404, '404 NOT FOUND');
  8. } else if ($second_hand_house['house_type_id'] != 2) {
  9. throw new \think\exception\HttpException(404, '404 NOT FOUND');
  10. }
  11. $this->assign('second_hand_house', $second_hand_house);
  12. /*************************取二手房信息 Begin*******************************/
  13. /*************************取推薦樓盤 Begin*******************************/

Call Stack

  1. in Sale.php line 375
  2. at Sale->detail()
  3. at ReflectionMethod->invokeArgs(object(Sale), []) in App.php line 343
  4. at App