|
@@ -123,14 +123,14 @@ public class KuaishouProjectVideoGetController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/offShelfVideo")
|
|
@PostMapping(value = "/offShelfVideo")
|
|
- public Result<Object> offShelfVideo(String id) {
|
|
|
|
|
|
+ public Result<Object> offShelfVideo(@RequestBody JSONObject data) {
|
|
try {
|
|
try {
|
|
- if (Check.isNull(id)) {
|
|
|
|
|
|
+ if (Check.isNull(data.getString("id"))) {
|
|
return Result.error("缺失参数");
|
|
return Result.error("缺失参数");
|
|
}
|
|
}
|
|
KuaishouProjectVideoGet videoGet = new KuaishouProjectVideoGet();
|
|
KuaishouProjectVideoGet videoGet = new KuaishouProjectVideoGet();
|
|
videoGet.setStatus(1);
|
|
videoGet.setStatus(1);
|
|
- videoGet.setId(id);
|
|
|
|
|
|
+ videoGet.setId(data.getString("id"));
|
|
kuaishouProjectVideoGetService.updateById(videoGet);
|
|
kuaishouProjectVideoGetService.updateById(videoGet);
|
|
return Result.ok("success");
|
|
return Result.ok("success");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|