|
@@ -385,6 +385,23 @@ public class PQBaseViewModel: NSObject {
|
|
|
completeHander(response as? [String: Any], nil)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// 请求APP 常规配置参数
|
|
|
+ /// - Parameter completeHander: <#completeHander description#>
|
|
|
+ /// - Returns: <#description#>
|
|
|
+ public class func getBaseConfig(completeHander: @escaping (_ titles: Array<String>?) -> Void) {
|
|
|
+
|
|
|
+ SWNetRequest.postRequestData(url: PQENVUtil.shared.longvideoapi + getBaseConfigURL, parames: nil) { response, _, _, _ in
|
|
|
+ if response != nil, !(response is NSNull) {
|
|
|
+
|
|
|
+ let responseDic = response as! [String: Any]
|
|
|
+ BFLog(message: "推荐的标题为\(responseDic["rhythmVideoTitles"])")
|
|
|
+ completeHander(responseDic["rhythmVideoTitles"] as? Array<String>)
|
|
|
+ } else {
|
|
|
+ completeHander(nil)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|