Explorar o código

支持一次查多个词

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
5a83f2c064
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/DhammaTermController.php

+ 1 - 1
app/Http/Controllers/DhammaTermController.php

@@ -135,7 +135,7 @@ class DhammaTermController extends Controller
 				break;
 			case 'word':
 				$table = DhammaTerm::select($indexCol)
-									->where('word', $request->get("word"));
+									->whereIn('word', explode(',',$request->get("word")) );
 				break;
             case 'hot-meaning':
                 $key='term/hot_meaning';