Commit 7e8f219a by patpat

修复在线支付重试有可能导致逻辑卡机的bug

parent 85933aca
......@@ -110,12 +110,16 @@ public class PayOnlineAction extends Action {
final MainWebSocket.Response response = new MainWebSocket.Response() {
@Override
protected void onSuccess(long sessionId, JSONObject data, String message) {
if (getState() == State.RESQUEST) {
setState(State.RESQUEST_SUCCESS, message);
}
}
@Override
protected void onFail(long sessionId, JSONObject data, String message, String code) {
if (getState() == State.RESQUEST) {
setState(State.RESQUEST_FAIL, message);
}
}
};
try {
......
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