Skip to content

Commit

Permalink
FIX: 修改了解析拼写错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ET-LINK committed Nov 28, 2019
1 parent ea86ed9 commit b750766
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions EnterAffectiveCloud/Cloud/AffectiveCloudServices.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion EnterAffectiveCloud/Cloud/CloudModels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public class CSResponseDataJSONModel: HandyJSON {
mapper <<<
self.biodataList <-- "bio_data_type"
mapper <<<
self.affectiveList <-- "cloud_services"
self.affectiveList <-- "cloud_service"
}
}

Expand Down

0 comments on commit b750766

Please sign in to comment.