| | |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.helper.WebHelper; |
| | | import com.lf.server.service.all.BaseUploadService; |
| | | import com.lf.server.service.data.DownloadService; |
| | | import com.lf.server.service.show.InquiryService; |
| | | import com.lf.server.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @PostMapping(value = "/downloadTiles") |
| | | public ResponseMsg<Object> downloadTiles(@RequestBody DownloadTileEntity dt, HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | | |
| | | if (null == dt || null == dt.getPubid() || StringHelper.isEmpty(dt.getPwd())) { |
| | | return fail("发布ID和密码不能为空"); |
| | | } |
| | | String err = dt.verifyCoords(); |
| | | if (null != err) { |
| | | return fail(err); |
| | | } |
| | | if (!DownloadService.decryptPwd(dt)) { |
| | | return fail("密码解密失败", null); |
| | | } |
| | | |
| | | return success(""); |
| | | } catch (Exception ex) { |