ruifeng_liu пре 3 година
родитељ
комит
868b933537
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/controller/patent/patentinfo.js

+ 1 - 1
app/controller/patent/patentinfo.js

@@ -12,7 +12,7 @@ class PatentinfoController extends Controller {
 
   async queryByOrg() {
     const data = await this.service.queryByOrg(this.ctx.query);
-    return data;
+    this.ctx.ok(data);
   }
 }
 module.exports = CrudController(PatentinfoController, meta);