Преглед на файлове

Merge branch 'develop_PDFReaderPro_V4.7.0' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderPro_V4.7.0

tangchao преди 1 седмица
родител
ревизия
f47c771c94
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      PDF Office/PDF Master/MemberCenter/Model/KMMemberCenterManager.swift

+ 3 - 1
PDF Office/PDF Master/MemberCenter/Model/KMMemberCenterManager.swift

@@ -1315,7 +1315,9 @@ class KMMemberCenterManager: NSObject {
                     dic = (info as? NSDictionary) ?? [:]
                 }
                 let requestCode: Int = dic["code"] as? Int ?? 0
-                if requestCode == 200 {
+                let requestDic: NSDictionary = dic["result"] as? NSDictionary ?? [:]
+                let status:String = requestDic["status"]  as? String ?? ""
+                if requestCode == 200  &&  status.uppercased() == "COMPLETED"{
                     complete(true, dic)
                 } else {
                     complete(false, dic)