diff --git a/uPic/Extensions/NotificationExt.swift b/uPic/Extensions/NotificationExt.swift index b5bcd8b..d3affd3 100644 --- a/uPic/Extensions/NotificationExt.swift +++ b/uPic/Extensions/NotificationExt.swift @@ -83,7 +83,7 @@ extension NotificationExt: UNUserNotificationCenterDelegate { content.sound = UNNotificationSound.default content.userInfo = ["body": info] - let request = UNNotificationRequest(identifier: "U_PIC_REQUEST", + let request = UNNotificationRequest(identifier: "U_PIC_REQUEST_\(String.randomStr(len: 5))", content: content, trigger: nil) diff --git a/uPic/Models/Tencent/TencentUploader.swift b/uPic/Models/Tencent/TencentUploader.swift index 3efb9e5..5a482e6 100644 --- a/uPic/Models/Tencent/TencentUploader.swift +++ b/uPic/Models/Tencent/TencentUploader.swift @@ -70,7 +70,7 @@ class TencentUploader: BaseUploader { let signKey = qKeyTime.calculateHMACByKey(key: secretKey).toHexString() // MARK: 加密 policy var policyDict = Dictionary() - let conditions = [["bucket": bucket], ["key": key], ["q-sign-time": qKeyTime], ["q-sign-algorithm": qSignAlgorithm], ["q-ak": secretId]] + let conditions = [["bucket": bucket], ["key": key]] policyDict["conditions"] = conditions let policy = TencentUtil.getPolicy(policyDict: policyDict)