Ver código fonte

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

visuddhinanda 2 anos atrás
pai
commit
a9e0dec167
1 arquivos alterados com 1 adições e 5 exclusões
  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));
         $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]);
     }
 
     /**