|
@@ -14,7 +14,10 @@ class ViewController: UIViewController {
|
|
|
override func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
// Do any additional setup after loading the view, typically from a nib.
|
|
|
- BFNetRequestAdaptor.postRequestData(url: "https://speed.piaoquantv.com/longvideoapi/sys/app/config", parames: nil,commonParams: commonParams()) { respose, extData, error, duration in
|
|
|
+ BFNetRequestAdaptor.postRequestData(url: "https://speed.piaoquantv.com/longvideoapi/video/distribute/category/videoList/v2", parames: ["categoryJson": "{\"categoryId\":55}", "pageNo": 1, "pageSize": 4, "sceneType": 1, "pageSource": "speedApp-category", "h5MsgVid": "", "cutBoard": "", "cutBoardInfo": ""],commonParams: commonParams()) { respose, extData, error, duration in
|
|
|
+
|
|
|
+ }
|
|
|
+ BFNetRequestAdaptor.imageValideRequestData(url: "http://www.mxfjx.com/uploadfiles/2014/4/小鸡%20鸡蛋%20蛋生鸡%20鸡生蛋_conew1.gif") { data, respnse, error in
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -27,21 +30,22 @@ class ViewController: UIViewController {
|
|
|
"model": model, "system": systemName + " " + systemVersion, "brand": localizedModel, "platform": "iOS", "networkType": SWNetRequest.networkStatusDescription(), "clientIp": SWNetRequest.ipAddressDescription(),
|
|
|
]
|
|
|
let commParams: [String: Any] = [
|
|
|
- "appVersionCode": "1.1.0",
|
|
|
+ "appVersionCode": "344",
|
|
|
"versionCode": "1.1.0",
|
|
|
"system": systemName + " " + systemVersion,
|
|
|
"systemVersion": systemName + " " + systemVersion,
|
|
|
"appType": 13,
|
|
|
"appId": 111111,
|
|
|
- "machineCode": "getMachineCode()sdsdsdsdsd",
|
|
|
+ "machineCode": "43429BA1-6723-43B3-8B95-96782D289EA7",
|
|
|
"networkType": SWNetRequest.networkStatusDescription(),
|
|
|
"ipAddress": SWNetRequest.ipAddressDescription(),
|
|
|
"clientTimestamp": Int64(Date().timeIntervalSince1970 * 1000),
|
|
|
"platform": "iOS",
|
|
|
- "versionName": "1.1.0",
|
|
|
+ "versionName": "2.6.6",
|
|
|
+ "pageSource": "speedApp-category",
|
|
|
// "sessionId": PQSingletoMemoryUtil.shared.sessionId,
|
|
|
// "subSessionId": PQSingletoMemoryUtil.shared.subSessionid ?? PQSingletoMemoryUtil.shared.sessionId,
|
|
|
- "mid": "getMachineCode()sdsdsdsdsd",
|
|
|
+ "mid": "43429BA1-6723-43B3-8B95-96782D289EA7",
|
|
|
"machineInfo": "",
|
|
|
// "abInfoData": dictionaryToJsonString(PQSingletoMemoryUtil.shared.abInfoData) ?? "",
|
|
|
"requestId": "423232323232323",
|