|
@@ -28,6 +28,7 @@ import com.ozs.websocket.WebSocketServer;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -60,6 +61,8 @@ public class GeoHazardMonitorTokenController {
|
|
|
SvcAddressService svcAddressService;
|
|
|
@Autowired
|
|
|
BaseCameraManagementService baseCameraManagementService;
|
|
|
+ @Value("${sdk.publish:http://124.71.171.71:18819/hazard/sdk/publish}")
|
|
|
+ private String sdkUrl;
|
|
|
|
|
|
/**
|
|
|
* 测试app消息推送
|
|
@@ -203,9 +206,8 @@ public class GeoHazardMonitorTokenController {
|
|
|
}
|
|
|
respMsgAlarmVo.setCancelTime(null);
|
|
|
}
|
|
|
- String url = "http://localhost:18819/hazard/sdk/publish";
|
|
|
try {
|
|
|
- String result = HttpClientUtil.postJson(url, JSON.toJSONString(alarm));
|
|
|
+ String result = HttpClientUtil.postJson(sdkUrl, JSON.toJSONString(alarm));
|
|
|
} catch (Exception e) {
|
|
|
log.info(e.getMessage());
|
|
|
e.printStackTrace();
|