Коммит
eb9bf3251c
|
@ -469,7 +469,7 @@
|
|||
"@executable_path/Frameworks",
|
||||
"@loader_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 0.99.8;
|
||||
MARKETING_VERSION = 0.99.9;
|
||||
PLIST_FILE_OUTPUT_FORMAT = "same-as-input";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.NCCommunication;
|
||||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
||||
|
@ -504,7 +504,7 @@
|
|||
"@executable_path/Frameworks",
|
||||
"@loader_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 0.99.8;
|
||||
MARKETING_VERSION = 0.99.9;
|
||||
PLIST_FILE_OUTPUT_FORMAT = "same-as-input";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.NCCommunication;
|
||||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
||||
|
|
|
@ -123,6 +123,10 @@ extension NCCommunication {
|
|||
timeout: TimeInterval = 60,
|
||||
completion: @escaping (NCCSearchResult?, _ errorCode: Int, _ errorDescription: String) -> Void) -> DataRequest? {
|
||||
|
||||
guard let term = term.urlEncoded else {
|
||||
completion(nil, NSURLErrorBadURL, NSLocalizedString("_invalid_url_", value: "Invalid server url", comment: ""))
|
||||
return nil
|
||||
}
|
||||
var endpoint = "ocs/v2.php/search/providers/\(id)/search?format=json&term=\(term)"
|
||||
if let limit = limit {
|
||||
endpoint += "&limit=\(limit)"
|
||||
|
|
Загрузка…
Ссылка в новой задаче