|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (NyShuttleHttpCommand requestCommand : commandList) { | 
|---|
|  |  |  | JSONObject result = requestCommand(requestCommand); | 
|---|
|  |  |  | if (result == null) { | 
|---|
|  |  |  | return response;//请求失败 | 
|---|
|  |  |  | while (true) { | 
|---|
|  |  |  | JSONObject result = requestCommand(requestCommand); | 
|---|
|  |  |  | if (result == null) { | 
|---|
|  |  |  | //                        return response;//请求失败 | 
|---|
|  |  |  | continue;//请求失败尝试重新请求 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.shuttleProtocol.setSendTime(System.currentTimeMillis());//指令下发时间 | 
|---|
|  |  |  | response.setMessage(JSON.toJSONString(result)); | 
|---|
|  |  |  | response.setResult(true); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.shuttleProtocol.setSendTime(System.currentTimeMillis());//指令下发时间 | 
|---|
|  |  |  | response.setMessage(JSON.toJSONString(result)); | 
|---|
|  |  |  | response.setResult(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return response; | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|