临时提交
parent
a8ad586204
commit
11599b2f05
|
@ -191,7 +191,7 @@ public class RedisRpcStreamPushController extends RpcController {
|
||||||
streamPushPlayService.start(id, (code, msg, data) -> {
|
streamPushPlayService.start(id, (code, msg, data) -> {
|
||||||
if (code == ErrorCode.SUCCESS.getCode()) {
|
if (code == ErrorCode.SUCCESS.getCode()) {
|
||||||
response.setStatusCode(ErrorCode.SUCCESS.getCode());
|
response.setStatusCode(ErrorCode.SUCCESS.getCode());
|
||||||
response.setBody(data);
|
response.setBody(JSONObject.toJSONString(data));
|
||||||
sendResponse(response);
|
sendResponse(response);
|
||||||
}
|
}
|
||||||
}, null, null);
|
}, null, null);
|
||||||
|
|
|
@ -89,6 +89,7 @@ public class StreamPushServiceImpl implements IStreamPushService {
|
||||||
if (streamPushInDb == null) {
|
if (streamPushInDb == null) {
|
||||||
StreamPush streamPush = StreamPush.getInstance(event, userSetting.getServerId());
|
StreamPush streamPush = StreamPush.getInstance(event, userSetting.getServerId());
|
||||||
streamPush.setPushing(true);
|
streamPush.setPushing(true);
|
||||||
|
streamPush.setServerId(userSetting.getServerId());
|
||||||
streamPush.setUpdateTime(DateUtil.getNow());
|
streamPush.setUpdateTime(DateUtil.getNow());
|
||||||
streamPush.setPushTime(DateUtil.getNow());
|
streamPush.setPushTime(DateUtil.getNow());
|
||||||
add(streamPush);
|
add(streamPush);
|
||||||
|
|
Loading…
Reference in New Issue