From fdacd6f57d9ace487ee017c0a58de0a66075c9ca Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期三, 19 六月 2024 15:45:18 +0800 Subject: [PATCH] 修改 测控阀查询接口 返回实际在线情、增加返回通讯协议、备注 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientCtrl.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientCtrl.java index 7d16dba..196f207 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientCtrl.java @@ -513,6 +513,7 @@ String sessionKey = job.getString("session_key"); Long clientId = clientSv.getClientIdByPhone(phoneNumber); + String SessionId = ""; if(clientId != null) { // 娣诲姞寰俊鐢ㄦ埛璐︽埛璁板綍 SeOpenId seOpenId = new SeOpenId(); @@ -520,7 +521,11 @@ seOpenId.setOpenId(openid); seOpenId.setSessionKey(sessionKey); seOpenId.setCreateTime(new Date()); - Long SessionId = clientSv.addOpenId(seOpenId); + //Long SessionId = clientSv.addOpenId(seOpenId); + Long rec = clientSv.addOpenId(seOpenId); + if(rec != null) { + SessionId = String.valueOf(rec); + } return BaseResponseUtils.buildSuccess(SessionId); } else { -- Gitblit v1.8.0