Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

Commit

Permalink
1. 新增 日志打印打开/关闭接口; 2. 修复 单/多图上传BUG;3. 优化代码规范;
Browse files Browse the repository at this point in the history
  • Loading branch information
jkpang committed Feb 15, 2017
1 parent 350d44a commit 2aad2fe
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 99 deletions.
4 changes: 2 additions & 2 deletions PPNetworkHelper.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Pod::Spec.new do |s|

s.name = "PPNetworkHelper"
s.version = "0.6.0"
s.summary = "对AFNetworking 3.x 与YYCache的二次封装,一句代码搞定数据请求与缓存,告别FMDB!"
s.version = "0.7.0"
s.summary = "AFNetworking 3.x 与YYCache封装,一句代码搞定数据请求与缓存,告别FMDB!控制台直接打印json中文字符,调试更方便"

s.homepage = "https://github.com/jkpang/PPNetworkHelper.git"

Expand Down
Binary file not shown.
21 changes: 16 additions & 5 deletions PPNetworkHelper/PPNetworkHelper/PPNetworkHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ typedef void(^PPNetworkStatus)(PPNetworkStatusType status);

@interface PPNetworkHelper : NSObject

/**
实时获取网络状态,通过Block回调实时获取(此方法可多次调用)
*/
+ (void)networkStatusWithBlock:(PPNetworkStatus)networkStatus;

/**
有网YES, 无网:NO
*/
Expand All @@ -116,11 +111,27 @@ typedef void(^PPNetworkStatus)(PPNetworkStatusType status);
*/
+ (void)cancelAllRequest;

/**
实时获取网络状态,通过Block回调实时获取(此方法可多次调用)
*/
+ (void)networkStatusWithBlock:(PPNetworkStatus)networkStatus;

/**
取消指定URL的HTTP请求
*/
+ (void)cancelRequestWithURL:(NSString *)URL;

/**
开启日志打印 (Debug级别)
*/
+ (void)openLog;

/**
关闭日志打印
*/
+ (void)closeLog;


/**
* GET请求,无缓存
*
Expand Down
Loading

0 comments on commit 2aad2fe

Please sign in to comment.