visuddhinanda 3 年之前
父節點
當前提交
634b9f2648
共有 2 個文件被更改,包括 45 次插入 和 0 次删除
  1. 45 0
      app/Console/Commands/TestSearchPali.php
  2. 二進制
      grpc/GPBMetadata/Tulip.php

+ 45 - 0
app/Console/Commands/TestSearchPali.php

@@ -0,0 +1,45 @@
+<?php
+
+namespace App\Console\Commands;
+
+use Illuminate\Console\Command;
+use App\Tools\PaliSearch;
+
+class TestSearchPali extends Command
+{
+    /**
+     * The name and signature of the console command.
+     *
+     * @var string
+     */
+    protected $signature = 'test:search.pali';
+
+    /**
+     * The console command description.
+     *
+     * @var string
+     */
+    protected $description = 'Command description';
+
+    /**
+     * Create a new command instance.
+     *
+     * @return void
+     */
+    public function __construct()
+    {
+        parent::__construct();
+    }
+
+    /**
+     * Execute the console command.
+     *
+     * @return int
+     */
+    public function handle()
+    {
+        $result = PaliSearch::search(['citta'],2,0,10);
+        var_dump($result);
+        return 0;
+    }
+}

二進制
grpc/GPBMetadata/Tulip.php