Commit 89135b93 authored by 冯超鹏's avatar 冯超鹏

no message

parent 3d0b374c
Pipeline #96 failed with stages
...@@ -82,7 +82,6 @@ class HomepageController extends Controller ...@@ -82,7 +82,6 @@ class HomepageController extends Controller
public function userdevicemonthcount(Request $request) public function userdevicemonthcount(Request $request)
{ {
\Session::put(['loginuid' => Auth::id()]); \Session::put(['loginuid' => Auth::id()]);
dd(\Session::get('loginuid'));
$year_start = strtotime(date("Y") . "-01-01"); // 获取当前的1月份的时间戳 $year_start = strtotime(date("Y") . "-01-01"); // 获取当前的1月份的时间戳
$endThismonth = mktime(23, 59, 59, date('m'), date('t'), date('Y')); //获取当月的时间戳 $endThismonth = mktime(23, 59, 59, date('m'), date('t'), date('Y')); //获取当月的时间戳
$devicedata = Device::where('uid','=',Auth::id())->whereBetween('deviceaddtime', [$year_start, $endThismonth]) $devicedata = Device::where('uid','=',Auth::id())->whereBetween('deviceaddtime', [$year_start, $endThismonth])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment