|
|
|
@@ -299,6 +299,7 @@ public class ApiController { |
|
|
|
@RequestMapping(value = "/broadcast", method = {RequestMethod.GET}) |
|
|
|
@ResponseBody |
|
|
|
public R broadcast(@RequestParam(value = "channel") String channel){ |
|
|
|
try { |
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
R<JSONObject> objectR = remoteDigitalmanService.mansInfo(); |
|
|
|
JSONObject jsonObj = objectR.getData(); |
|
|
|
@@ -317,7 +318,11 @@ public class ApiController { |
|
|
|
String str = json.toJSONString(); |
|
|
|
|
|
|
|
messageQueueService.broadcast(channel, str); |
|
|
|
return R.ok(str); |
|
|
|
return R.ok(str); |
|
|
|
}catch (Exception e){ |
|
|
|
e.printStackTrace(); |
|
|
|
return R.fail(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping(value = "/get_activate/{snCode}", method = {RequestMethod.GET}) |
|
|
|
|