| | |
| | | import com.doumee.core.utils.FtpUtil; |
| | | import com.doumee.core.utils.HttpsUtil; |
| | | import com.doumee.core.utils.aliyun.ALiYunUtil; |
| | | import com.doumee.dao.business.model.CarUseBook; |
| | | import com.doumee.dao.business.model.Cars; |
| | | import com.doumee.dao.business.model.JkCabinetLog; |
| | | import com.doumee.dao.web.reqeust.VisitRecordDTO; |
| | | import com.doumee.dao.web.response.VisitRecordVO; |
| | | import com.doumee.service.business.CarUseBookService; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.third.model.PageData; |
| | | import com.doumee.service.business.third.model.PageWrap; |
| | |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @Autowired |
| | | private CarUseBookService carUseBookService; |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("简道云推送用车申请") |
| | | @PostMapping("/pushCarApply") |
| | | public void pushCarApply (HttpServletRequest request, HttpServletResponse response) { |
| | |
| | | Map<String, String> parameterMap = parseParameter(request.getQueryString()); |
| | | String nonce = parameterMap.get("nonce"); |
| | | String timestamp = parameterMap.get("timestamp"); |
| | | String signature = getSignature(nonce, payload, SECRET, timestamp); |
| | | String signature = getSignature(nonce, payload, LOCAl_SECRET, timestamp); |
| | | log.error("简道云=========nonce:"+nonce); |
| | | log.error("简道云=========timestamp:"+timestamp); |
| | | log.error("简道云=========payload:"+payload); |
| | |
| | | } |
| | | |
| | | public static final String SECRET ="yKSKuO0LoFf06jWGrwwuGudK"; |
| | | public static final String LOCAl_SECRET ="tSoMiqC3GY6tItXY48tSTwY6"; |
| | | |
| | | private static String getSignature(String nonce, String payload, String secret, String timestamp) { |
| | | return DigestUtils.sha1Hex(nonce + ":" + payload + ":" + secret + ":" + timestamp); |
| | | } |