Commit 51a2bea5 by patpat

修复语法错误

parent f7f9e113
......@@ -182,8 +182,8 @@ public class MainWebSocket extends WebSocketClient {
}
@Override
public void onOpen(ServerHandshake handshakedata) {
Log.i(TAG, String.format("onOpen: %d %s", handshakedata.getHttpStatus(), handshakedata.getHttpStatusMessage()));
public void onOpen(ServerHandshake handshakeData) {
Log.i(TAG, String.format("onOpen: %d %s", handshakeData.getHttpStatus(), handshakeData.getHttpStatusMessage()));
EventBus.getDefault().post(new ConnectStateEvent(ConnectStateEvent.CONNECTED));
PayOfflineAction.getDefault().upload();
}
......@@ -275,7 +275,7 @@ public class MainWebSocket extends WebSocketClient {
onSuccess(data, message);
}
public void fail(JSONObject data, String message, String code){
public void fail(JSONObject data, String message, String code) {
if (this.cancel) return;
onFail(data, message, code);
}
......
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