| | |
| | | rt = this.stopTcpSv() ; |
| | | }else if(com.equals(CodeLocal.recoverTcpSv)){ |
| | | rt = this.recoverTcpSv() ; |
| | | }else if(com.equals(CodeLocal.mwState)){ |
| | | rt = this.mwState() ; |
| | | }else if(com.equals("10")){ |
| | | rt = this.cd10() ; |
| | | }else if(com.equals("21")){ |
| | |
| | | |
| | | private BaseResponse recoverTcpSv(){ |
| | | return this.sendCom2Mw(this.commandLocal(CodeLocal.recoverTcpSv, null, null)) ; |
| | | } |
| | | |
| | | private BaseResponse mwState(){ |
| | | return this.sendCom2Mw(this.commandLocal(CodeLocal.mwState, null, null)) ; |
| | | } |
| | | |
| | | private BaseResponse cd10(){ |
| | |
| | | comVo.moneyRemain = 234.56 ; |
| | | comVo.waterPrice = 1.2 ; |
| | | comVo.minutes = 3 ; |
| | | String nextDtStr = DateTime.nextXMinute_yyyy_MM_dd_HH_mm_ss(DateTime.yyyy_MM_dd_HH_mm_ss(), 5) ;//将来5分钟 |
| | | String nextDtStr = DateTime.nextXMinute_yyyy_MM_dd_HH_mm_ss(DateTime.yyyy_MM_dd_HH_mm_ss(), comVo.minutes) ;//将来X分钟 |
| | | int[] nextDt = DateTime.yyyy_MM_dd_HH_MM_SS_2_ymdhmsGroup(nextDtStr) ; |
| | | comVo.year = nextDt[0] ; |
| | | comVo.month = nextDt[1] ; |