//
//  WebActionOC.h
//  SYMobilePortal
//
//  Created by xiejiangbo on 2018/5/31.
//  Copyright © 2018年 yin chen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
@interface WebActionOC : NSObject
+ (WebActionOC *)ShareWebActionOC;
+ (WKProcessPool *)singleWkProcessPool;
-(NSString *)decodingAction:(NSString *)str;
-(NSString *)getUrl:(NSString *)urlStr;
-(void)WeAction:(NSString *)message AndBody:(NSString *)body;
-(void)openApp:(NSString *)openAppUrl;
-(void)clearCache;
//-(void)setNSURLProtocolCustom;
/// 加密
- (NSString *)encryptAES:(NSString *)content key:(NSString *)key;
/// 解密
- (NSString *)decryptAES:(NSString *)content key:(NSString *)key;
- (NSString *)getWebCookie:(NSString *)info;
- (NSMutableString*)getCookieValue:(NSString *)cookie host:(NSString *)host;
+ (NSMutableURLRequest *)syncRequestCookie:(NSMutableURLRequest *)request;
+ (NSString *)ajaxCookieScripts;
- (NSMutableDictionary *)getURLParameters:(NSString *)urlStr;
- (NSString *)getDictStr:(NSMutableDictionary *)dic;
- (NSString *)getUrlStr:(NSURL *)url;
- (void)setValueBlock:(nullable void (^)(NSString *task))success;
@end
