|
@@ -83,20 +83,20 @@ public class PQUploadViewModel: NSObject {
|
|
|
/// - descr: 描述
|
|
|
/// - completeHander: <#completeHander description#>
|
|
|
/// - Returns: <#description#>
|
|
|
- public class func updateVideo(title: String, videoId: String, coverImgPath: String, descr: String,topicId:Int64? = nil, completeHander: @escaping (_ videoData: PQVideoListModel?, _ msg: String?) -> Void) {
|
|
|
+ public class func updateVideo(title: String, videoId: String, coverImgPath: String, descr: String,topicId:Int64? = nil, completeHander: @escaping (_ response:[String:Any]?,_ videoData: PQVideoListModel?, _ msg: String?) -> Void) {
|
|
|
var params : Dictionary<String,Any> = ["title": title, "videoId": videoId, "coverImgPath": coverImgPath, "descr": descr, "viewStatus": 1, "barrageSwitch": 1]
|
|
|
if topicId != nil && (topicId ?? 0) > 0 {
|
|
|
params["topicId"] = topicId!
|
|
|
}
|
|
|
BFNetRequestAdaptor.postRequestData(url: PQENVUtil.shared.longvideoapi + updateVideoUrl, parames: params, commonParams: commonParams()) { response, _, error, _ in
|
|
|
if error != nil {
|
|
|
- completeHander(nil, error?.msg)
|
|
|
+ completeHander(nil,nil, error?.msg)
|
|
|
return
|
|
|
}
|
|
|
// 1015
|
|
|
let tempModel = PQVideoListModel(jsonDict: response as! [String: Any])
|
|
|
tempModel.auditStatus = 1
|
|
|
- completeHander(tempModel, nil)
|
|
|
+ completeHander(response as? [String: Any],tempModel, nil)
|
|
|
}
|
|
|
}
|
|
|
|