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 });
   }