|
|
@@ -297,8 +297,19 @@ public class imdialog extends Controller {
|
|
|
*/
|
|
|
public String closeSubject() throws D3bException, P2Exception {
|
|
|
long timsubjectid = content.getLongValue("timsubjectid"); //»°ÌâID ÐÂÔöʱĬÈÏ´«0
|
|
|
+ long timdialogid = content.getLongValue("timdialogid");
|
|
|
String status = dbConnect.runSqlUpdate("update timsubject set fisclose=1,closedate=getDate() where siteid='" + siteid + "' and timsubjectid='" + timsubjectid + "'");
|
|
|
if ("true".equals(status)) {
|
|
|
+ for (long userid : getImDialogUserIds(timdialogid)) {
|
|
|
+ if (parameter.websocketClients.containsKey(userid)) {
|
|
|
+ JSONObject methodobject = new JSONObject();
|
|
|
+ methodobject.put("type", "refreshimdialog");
|
|
|
+ methodobject.put("timdialogid", timdialogid);
|
|
|
+ for (WebClientSocket webClientSocket : parameter.websocketClients.get(userid).values()) {
|
|
|
+ webClientSocket.sendSystemMessage(methodobject);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return getSucReturnObject().toString();
|
|
|
} else {
|
|
|
return getErrReturnObject().toString();
|