|
@@ -3180,7 +3180,8 @@ public class ApiController {
|
|
* @param taskId 积分包
|
|
* @param taskId 积分包
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @ApiOperation(value = "分页查询", notes = "分页查询")
|
|
|
|
|
|
+ @SysLog("更新任务截图")
|
|
|
|
+ @Inner(value = false)
|
|
@GetMapping("/getH5To")
|
|
@GetMapping("/getH5To")
|
|
public R getH5To(String taskId) {
|
|
public R getH5To(String taskId) {
|
|
WmTask wmTask = wmTaskService.getById(taskId);
|
|
WmTask wmTask = wmTaskService.getById(taskId);
|
|
@@ -3205,8 +3206,12 @@ public class ApiController {
|
|
InputStream inputStream = new ByteArrayInputStream(bs.toByteArray());
|
|
InputStream inputStream = new ByteArrayInputStream(bs.toByteArray());
|
|
|
|
|
|
String path = sysFileService.uploadImgByByte(inputStream);
|
|
String path = sysFileService.uploadImgByByte(inputStream);
|
|
- wmTask.setTaskInfoImg(path);
|
|
|
|
- wmTaskService.updateById(wmTask);
|
|
|
|
|
|
+ if (StrUtil.isNotBlank(path)) {
|
|
|
|
+ WmTask updateTask = new WmTask();
|
|
|
|
+ updateTask.setId(wmTask.getId());
|
|
|
|
+ updateTask.setTaskInfoImg(path);
|
|
|
|
+ wmTaskService.updateById(updateTask);
|
|
|
|
+ }
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("图片截取失败", e);
|
|
log.error("图片截取失败", e);
|
|
}
|
|
}
|