unissoft-bj / ihostsvc

system services & data services on ihost
0 stars 0 forks source link

系统管理 - 系统时间 #78

Open unissoft-bj opened 9 years ago

unissoft-bj commented 9 years ago

系统时间

前端向ihost获取ihost系统时间 在页面上显示ihost系统时间 按钮:使用本地时间校正:点击后获取本地时间,发送 ihostset.sh systime local '2015-5-23 21:03:00' 给ihost,ihost收到后执行 输入 网络时间服务器 按钮:使用网络时间校正:点击后发送 ihostset.sh systime ntp para1 给ihost,ihost收到后执行

点击按钮后刷新页面,显示新的系统时间

michaelyin commented 9 years ago

post /admin/ihostset json: {"command":"ihostset.sh systime local '2015-05-23 21:03:01'"}

michaelyin commented 9 years ago

same for #82

ycyn521 commented 9 years ago

获取ihost时间的rest?

michaelyin commented 9 years ago

GET http://localhost:8080/secure/resource

return json: { id: 1 content: "欢迎使用Matrix WIFI, 88-88-88-FF-FF-88!" now: "2015-06-02 09:29:34" }