#!/bin/sh
# 查询-串口设备
export PATH=/sbin:/usr/sbin:$PATH
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh
db="../bin/db"
jsoner="../bin/jsoner"

read data

uploadTime=`$jsoner $data uploadTime`

storeTime=`$jsoner $data storeTime`

alarmStoreTime=`$jsoner $data alarmStoreTime`

operationTime=`$jsoner $data operationTime`

jsoner -s /work/config.json common.uploadTime $uploadTime
jsoner -s /work/config.json common.storeTime $storeTime
jsoner -s /work/config.json common.alarmStoreTime $alarmStoreTime
jsoner -s /work/config.json common.operationTime $operationTime

echo "{\"code\":\"success\"}"

