瀏覽代碼

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)