Commit 1c471e67 by patpat

修复bug

parent fecd368b
......@@ -169,13 +169,15 @@ public class MainWebSocket extends WebSocketClient {
Request request = new Request();
request.action = action;
request.response = callback;
request.params = new JSONObject();
request.params.put(FieldEnum.equipmentId.name(), sDeviceSN);
request.params.put(FieldEnum.serialNumber.name(), mSessionId);
request.params.put(FieldEnum.action.name(), action);
request.params.put(FieldEnum.data.name(), data);
mRequestList.put(mSessionId, request);
if (callback != null) {
request.response = callback;
mRequestList.put(mSessionId, request);
}
String msg = request.params.toString();
LogUtil.i(TAG, String.format("send: %s", msg));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment