From b7507664a70f0d66d73afc27e9b773c2b718d35e Mon Sep 17 00:00:00 2001 From: ET-LINK Date: Thu, 28 Nov 2019 16:23:39 +0800 Subject: [PATCH] =?UTF-8?q?FIX:=20=E4=BF=AE=E6=94=B9=E4=BA=86=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EnterAffectiveCloud/Cloud/AffectiveCloudServices.swift | 8 ++++---- EnterAffectiveCloud/Cloud/CloudModels.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/EnterAffectiveCloud/Cloud/AffectiveCloudServices.swift b/EnterAffectiveCloud/Cloud/AffectiveCloudServices.swift index 6440f41..7f970cc 100644 --- a/EnterAffectiveCloud/Cloud/AffectiveCloudServices.swift +++ b/EnterAffectiveCloud/Cloud/AffectiveCloudServices.swift @@ -993,10 +993,10 @@ extension AffectiveCloudServices: WebSocketDelegate { self.delegate?.biodataServicesReport(client: self.client, response: model) NotificationCenter.default.post(name: NSNotification.Name.biodataServicesReportNotify, object: nil, userInfo: ["biodataServicesReport":model]) case (CSServicesType.affective.rawValue, CSEmotionOperation.start.rawValue): - if let dataModel = model.dataModel as? CSResponseDataJSONModel, - let list = dataModel.affectiveList { - self.appendEmotionAffectiveInitialList(list: list) - + if let dataModel = model.dataModel as? CSResponseDataJSONModel{ + if let list = dataModel.affectiveList { + self.appendEmotionAffectiveInitialList(list: list) + } } if model.code == 0 { if let subs = self.affectiveSubscription { diff --git a/EnterAffectiveCloud/Cloud/CloudModels.swift b/EnterAffectiveCloud/Cloud/CloudModels.swift index 4e46760..afa22dd 100644 --- a/EnterAffectiveCloud/Cloud/CloudModels.swift +++ b/EnterAffectiveCloud/Cloud/CloudModels.swift @@ -183,7 +183,7 @@ public class CSResponseDataJSONModel: HandyJSON { mapper <<< self.biodataList <-- "bio_data_type" mapper <<< - self.affectiveList <-- "cloud_services" + self.affectiveList <-- "cloud_service" } }