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