u
This commit is contained in:
+1
-1
@@ -88,5 +88,5 @@ class JsMindLogView(APIView):
|
||||
coop_mind_id = post_body.get('coop_mind_id')
|
||||
data = post_body.get('data')
|
||||
coop_mind_log_id = post_body.get('coop_mind_log_id')
|
||||
CooperationMind.objects.filter(id=coop_mind_id, data_log_id__lt=coop_mind_log_id).update(data=data, data_log_id=coop_mind_log_id, update_time=dt.now(), client_id=client_id)
|
||||
CooperationMind.objects.filter(id=coop_mind_id, log_id__lt=coop_mind_log_id).update(snapshot_data=data, log_id=coop_mind_log_id, update_time=dt.now(), client_id=client_id)
|
||||
return build_response()
|
||||
|
||||
@@ -55,6 +55,9 @@
|
||||
|
||||
// 获取一次日志
|
||||
this.fetch_log()
|
||||
|
||||
// 定时提交
|
||||
this.timerPush()
|
||||
}
|
||||
},
|
||||
_init_properties: function (_jm) {
|
||||
@@ -131,6 +134,7 @@
|
||||
const client_id = msg_json.client_id
|
||||
const log_id = msg_json.log_id
|
||||
if (log_id > this.coop_mind_log_id) {
|
||||
this.coop_mind_log_last_id = this.coop_mind_log_id
|
||||
this.coop_mind_log_id = log_id
|
||||
}
|
||||
|
||||
@@ -219,7 +223,7 @@
|
||||
}
|
||||
Jm.util.ajax.post(me.coop_api_url, param, function (resp) {
|
||||
})
|
||||
}, 5000)
|
||||
}, 10000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user