reloaded 5 年之前
父節點
當前提交
3ef57bdff9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/controller/bedroom.js

+ 2 - 1
app/controller/bedroom.js

@@ -15,7 +15,8 @@ class BedroomController extends Controller {
 
   // 一键分寝
   async apart() {
-    const res = await this.service.apart(this.ctx.body);
+    console.log(this.ctx.request.body);
+    const res = await this.service.apart(this.ctx.request.body);
     this.ctx.ok({ data: res });
   }