This commit is contained in:
2024-09-20 16:09:36 +08:00
parent 33650aad94
commit 4ab9490b45

View File

@@ -178,12 +178,9 @@ public class CommonController {
/**
* 交班
*/
@GetMapping("common/handoverData")
public Result handoverData(String shopId) {
JSONObject jsonObject1 = new JSONObject();
jsonObject1.put("type", "handover");
PushToClientChannelHandlerAdapter.getInstance().AppSendInfo(jsonObject1.toString(),shopId);
@PostMapping("common/handoverData")
public Result handoverData(@RequestBody Map<String, String> map) throws Exception{
PushToClientChannelHandlerAdapter.getInstance().AppSendInfo(JSONObject.toJSONString(map),map.get("shopId"));
return Result.success(CodeEnum.SUCCESS);
}