|
|
|
@ -30,6 +30,9 @@ import javax.validation.constraints.Max;
|
|
|
|
|
import javax.validation.constraints.Min;
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -133,6 +136,9 @@ public class VideoController {
|
|
|
|
|
public Result valid(@Validated @RequestBody VVParam param) {
|
|
|
|
|
int id = param.getId();
|
|
|
|
|
Video video = videoService.getById(id);
|
|
|
|
|
if(null == video){
|
|
|
|
|
return Result.fail(HttpStatusEnum.CUSTOM_EXCEPTION, "未找到该视频");
|
|
|
|
|
}
|
|
|
|
|
Integer originEffectResult = video.getEffectResult() == null ? 0 : video.getEffectResult();
|
|
|
|
|
if (param.getStatus() == 3) {
|
|
|
|
|
String reason = param.getReason();
|
|
|
|
@ -190,10 +196,10 @@ public class VideoController {
|
|
|
|
|
String touser = userService.getById(video.getUserId()).getUserid();
|
|
|
|
|
if (touser != null) {
|
|
|
|
|
appMessage.setTouser(touser);
|
|
|
|
|
// List<JSONObject>
|
|
|
|
|
JSONObject content_item = new JSONObject();
|
|
|
|
|
// content_item.fluentPut("")
|
|
|
|
|
httpUtil.qywxMessage(httpUtil.qywxGetToken(),touser,"传播效果审核",null,appMessage.getUrl(),null);
|
|
|
|
|
List<JSONObject> content_item = new ArrayList<>();
|
|
|
|
|
content_item.add(new JSONObject().fluentPut("key","审核结果").fluentPut("value",appMessage.getDescription()));
|
|
|
|
|
content_item.add(new JSONObject().fluentPut("key","审核时间").fluentPut("value",LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))));
|
|
|
|
|
httpUtil.qywxMessage(httpUtil.qywxGetToken(),touser,"传播效果审核",null,appMessage.getUrl(),content_item);
|
|
|
|
|
}
|
|
|
|
|
AppMessageUtil.sendMessage(appMessage);
|
|
|
|
|
return Result.success("", "审核完成");
|
|
|
|
|