Skip to content

Commit

Permalink
Merge branch 'hotfix/cos-error'
Browse files Browse the repository at this point in the history
  • Loading branch information
Svend committed Oct 8, 2019
2 parents 2662c77 + 86c93a0 commit c65c484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uPic/Extensions/NotificationExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion uPic/Models/Tencent/TencentUploader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class TencentUploader: BaseUploader {
let signKey = qKeyTime.calculateHMACByKey(key: secretKey).toHexString()
// MARK: 加密 policy
var policyDict = Dictionary<String, Any>()
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)

Expand Down

0 comments on commit c65c484

Please sign in to comment.