Forráskód Böngészése

内部使用oa后台

gogs 1 éve
szülő
commit
efa2eea48f
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      app/Http/Controllers/Api/DeviceController.php

+ 6 - 1
app/Http/Controllers/Api/DeviceController.php

@@ -19,7 +19,7 @@ class DeviceController extends Controller
 
     public function heartbeat(Request $request){
         $data = $request->all();
-        Log::channel('apiLog')->info('smkq', ['data' => $data]);
+        Log::channel('apiLog')->info('smkq-heartbeat', ['data' => $data]);
         $emloyee = new Employee();
         $emloyee = $emloyee->where('is_device',0)->get()->toArray();
 
@@ -62,6 +62,11 @@ class DeviceController extends Controller
         echo json_encode($return,JSON_UNESCAPED_UNICODE);
     }
 
+    public function addperson(Request $request){
+        $data = $request->all();
+        Log::channel('apiLog')->info('smkq-addperson', ['data' => $data]);
+    }
+