ソースを参照

:fire: return $this->error("没有查询到数据");

visuddhinanda 2 年 前
コミット
a9e0dec167
1 ファイル変更1 行追加5 行削除
  1. 1 5
      app/Http/Controllers/DhammaTermController.php

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

@@ -175,11 +175,7 @@ class DhammaTermController extends Controller
                        ->take($request->get('limit',1000));
                        ->take($request->get('limit',1000));
         $result = $table->get();
         $result = $table->get();
 
 
-		if($result){
-			return $this->ok(["rows"=>TermResource::collection($result),"count"=>$count]);
-		}else{
-			return $this->error("没有查询到数据");
-		}
+        return $this->ok(["rows"=>TermResource::collection($result),"count"=>$count]);
     }
     }
 
 
     /**
     /**