// 判断是不是时间戳?
if(ctype_digit($_GET['time'])) { //时间戳
$commonController = new \app\common\controller\Common();
$startTime = $commonController->zeroTimestamp($_GET["time"]);
$endTime =$startTime + 86400;
$startTime = strtotime("-1 month",$startTime);
}else{ //非时间戳
$startTime = strtotime($_GET['time']);
$endTime = $_GET["endTime"];
$endTime = strtotime($endTime);
}