| | |
| | | package com.flightfeather.uav.lightshare.web |
| | | |
| | | import com.flightfeather.uav.common.exception.ResponseErrorException |
| | | import com.flightfeather.uav.common.exception.BizException |
| | | import com.flightfeather.uav.lightshare.bean.BaseResponse |
| | | import com.flightfeather.uav.lightshare.bean.DataHead |
| | | |
| | |
| | | } else { |
| | | BaseResponse(true, data = res) |
| | | } |
| | | } catch (e: ResponseErrorException) { |
| | | } catch (e: BizException) { |
| | | BaseResponse(false, message = e.message ?: "") |
| | | } catch (e: Exception) { |
| | | e.printStackTrace() |
| | | BaseResponse(false, message = e.message ?: "服务器出现内部错误") |
| | | } |
| | | } |