ruifeng_liu 3 năm trước cách đây
mục cha
commit
868b933537
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);