|
|
|
@@ -115,6 +115,10 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
public AjaxResult conversationApi(@RequestBody DmIntentVo intent) { |
|
|
|
log.info("交互对象:{}", intent.toString()); |
|
|
|
redisTemplate.opsForValue().increment("dashboard:server", 1); |
|
|
|
// 获取今天日期,并格式化成yyyy-MM-dd |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
String today = sdf.format(new Date()); |
|
|
|
redisTemplate.opsForValue().increment(("dashboard:server-chart:" + today), 1); |
|
|
|
R<DmManDeviceDto> manDeviceDtoR = manDeviceService.manDeviceInfoInner(intent.getDevId()); |
|
|
|
Source source = SourceUtil.getSourceCache(manDeviceDtoR.getData().getStrategyId()); |
|
|
|
R<JSONObject> jsonObjectR = remoteIntentService.conversationInner(intent, manDeviceDtoR.getData().getTId(), source.getMaster(), SecurityConstants.INNER); |
|
|
|
|