java110
2023-01-30 a31e79f8a020cdcfa7105a11d907abe7e4e3cfff
service-api/src/main/java/com/java110/api/smo/impl/ApiCallBackInnerServiceSMOImpl.java
@@ -2,6 +2,7 @@
import com.alibaba.fastjson.JSONObject;
import com.java110.api.websocket.ParkingAreaWebsocket;
import com.java110.api.websocket.ParkingBoxWebsocket;
import com.java110.intf.api.IApiCallBackInnerServiceSMO;
import com.java110.utils.exception.SMOException;
import org.springframework.web.bind.annotation.RequestBody;
@@ -13,7 +14,13 @@
    public int webSentParkingArea(@RequestBody JSONObject reqJson) {
        JSONObject param = JSONObject.parseObject(reqJson.toString());
        try {
            ParkingAreaWebsocket.sendInfo(param.toJSONString(), param.getString("extBoxId"));
            ParkingBoxWebsocket.sendInfo(param.toJSONString(), param.getString("extBoxId"));
        } catch (Exception e) {
            throw new SMOException(e.getMessage());
        }
        try {
            ParkingAreaWebsocket.sendInfo(param.toJSONString(), param.getString("extPaId"));
        } catch (Exception e) {
            throw new SMOException(e.getMessage());
        }