Explorar o código

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

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
a9e0dec167
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  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]);
     }
 
     /**