Browse Source

支持一次查多个词

visuddhinanda 2 năm trước cách đây
mục cha
commit
5a83f2c064
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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';