wesley 6 年之前
父节点
当前提交
5506826a0e
共有 3 个文件被更改,包括 17 次插入2 次删除
  1. 2 2
      app/Console/Kernel.php
  2. 11 0
      app/Http/Controllers/Admin/Call/LabelController.php
  3. 4 0
      readme.md

+ 2 - 2
app/Console/Kernel.php

xqd
@@ -24,8 +24,8 @@ class Kernel extends ConsoleKernel
      */
     protected function schedule(Schedule $schedule)
     {
-        // $schedule->command('inspire')
-        //          ->hourly();
+         $schedule->command('inspire')
+                  ->hourly();
     }
 
     /**

+ 11 - 0
app/Http/Controllers/Admin/Call/LabelController.php

xqd
@@ -0,0 +1,11 @@
+<?php
+namespace App\Http\Controllers\Admin\Call;
+
+use Illuminate\Http\Request;
+use App\Http\Controllers\Admin\Controller;
+
+class LabelController extends Controller{
+    function index(Request $request){
+
+    }
+}

+ 4 - 0
readme.md

xqd
@@ -49,6 +49,10 @@
  {!! editor('local') !!}
  <script id="container" name="content" type="text/plain">{{ $data['content'] or ''}}</script>
 
+
+##如果要添加同步的机器人
+将pyshell下的两个脚本放在机器人的/root/pydata目录下(将脚本中的ip改为对应的机器人的ip),并添加到crontab
+
 ## USEFUL LINK
 - dingo/api [https://github.com/dingo/api](https://github.com/dingo/api)
 - transformer [fractal](http://fractal.thephpleague.com/)