         do {
             guard
                 let json:           String              = request.postBodyString,
-                let dict:           [String: Any]       = try json.jsonDecode()             as? [String : Any],
-                let idcardnumber:   String              = dict["idcardnumber"]              as? String,
-                let phonenumber:    String              = dict["phonenumber"]               as? String,
-                let roomnumber:     String              = dict["roomnumber"]                as? String,
-                let leaseterm:      String              = dict["leaseterm"]                 as? String,
-                let rent:           String              = dict["rent"]                      as? String,
-                let deposit:        String              = dict["deposit"]                   as? String,
-                let renttime:       Int                 = dict["renttime"]                  as? Int,
-                let internet:       Bool                = dict["internet"]                  as? Bool,
-                let trashfee:       Bool                = dict["trashfee"]                  as? Bool,
-                let water:          Int                 = dict["water"]                     as? Int,
-                let electric:       Int                 = dict["electric"]                  as? Int,
-                let month:          String              = dict["month"]                     as? String
+                let dict:           [String: Any]       = try json.jsonDecode()             as? [String: Any]
                 else {
-                    try response.setBody(json: ["success":false, "status": 200, "data": "参数没填完整"])
+                    try response.setBody(json: ["success": false, "status": 200, "data": "请填写请求参数"])
                     response.completed()
                     return
             }
 
+            guard let idcardnumber: String = dict["idcardnumber"] as? String else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "idcardnumber 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let phonenumber: String = dict["phonenumber"] as? String else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "phonenumber 请求参数不正确"])
+                response.completed()
+                return
+            }
+
+            guard let roomnumber: String = dict["roomnumber"]  as? String else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "roomnumber 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let leaseterm: String = dict["leaseterm"] as? String else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "leaseterm 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard  let rent: String = dict["rent"] as? String else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "rent 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard   let deposit: String = dict["deposit"] as? String else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "deposit 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let renttime: Int = dict["renttime"] as? Int else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "renttime 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let internet: Bool = dict["internet"] as? Bool else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "internet 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let trashfee: Bool = dict["trashfee"] as? Bool else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "trashfee 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let water: Int = dict["water"] as? Int else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "water 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let electric: Int = dict["electric"] as? Int else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "electric 请求参数不正确"])
+                response.completed()
+                return
+            }
+            
+            guard let month: String = dict["month"] as? String else {
+                try response.setBody(json: ["success": false, "status": 200, "data": "month 请求参数不正确"])
+                response.completed()
+                return
+            }
             
             let tenants = Tenants()
             tenants.uuid            = UUID.init().string

    ///   - response: 响应
    open static func rentlist(_ request: HTTPRequest, _ response: HTTPResponse) {
        do {
            var offset = 0
            if let page = request.param(name: "page") {
                offset = Int(page)!

            )
            

            try response.setBody(json: ["success": true, "status": 200, "data":
                                                                            ["tenant_updatetime": tenant_updatetime,
                                                                             "electric_id": electric_insert,
                                                                             "water_id": water_insert]])
            response.completed()
            
        } catch {
            try! response.setBody(json: ["success": false, "status": 200, "data": error])
            response.completed()
            Log.error(message: "update : \(error)")
        }
