Skip to content

Commit f3cffb9

Browse files
author
Xinguang Wang
committed
SDK1.7.7
1 parent fec11b6 commit f3cffb9

File tree

8 files changed

+93
-48
lines changed

8 files changed

+93
-48
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
###### SDK1.7.7
2+
- 增加SDK分享小程序
3+
- 增加选择发票接口
14

25
###### SDK1.7.6
36
- 提高稳定性

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/starboychina/WechatKit.svg)](https://travis-ci.org/starboychina/WechatKit)
44
[![Swift version](https://img.shields.io/badge/swift-3.0-orange.svg)](https://developer.apple.com/swift/)
5+
[![Documentation](https://starboychina.github.io/WechatKit/badge.svg)](https://starboychina.github.io/WechatKit/)
56
[![SwiftLint](https://img.shields.io/badge/SwiftLint-passing-brightgreen.svg)](https://github.com/realm/SwiftLint)
67
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
78
[![CocoaPods Compatible](https://img.shields.io/badge/CocoaPods-Compatible-4BC51D.svg?style=flat)](https://cocoapods.org/pods/WechatKit)

SDKExport/README.txt

100644100755
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
重要!
22

3+
SDK1.7.7
4+
1 增加SDK分享小程序
5+
2 增加选择发票接口
6+
37
SDK1.7.6
48
1. 提高稳定性
5-
2 修复mta崩溃
6-
3 新增接口支持开发者关闭mta数据统计上报
9+
1 修复mta崩溃
10+
2 新增接口支持开发者关闭mta数据统计上报
711

812
SDK1.7.5
913
1. 提高稳定性

SDKExport/WXApi.h

100644100755
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
*/
6161
+(BOOL) registerApp:(NSString *)appid;
6262

63-
6463
/*! @brief WXApi的成员函数,向微信终端程序注册第三方应用。
6564
*
6665
* 需要在每次启动第三方应用程序时调用。第一次调用后,会在微信的可用应用列表中出现。

SDKExport/WXApiObject.h

100644100755
Lines changed: 80 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10+
#import <UIKit/UIKit.h>
1011

1112
/*! @brief 错误码
1213
*
@@ -57,6 +58,7 @@ enum WXMPWebviewType {
5758
};
5859

5960

61+
6062
/*! @brief 应用支持接收微信的文件类型
6163
*
6264
*/
@@ -114,6 +116,8 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
114116
#pragma mark - WXMediaMessage
115117
@class WXMediaMessage;
116118

119+
#ifndef BUILD_WITHOUT_PAY
120+
117121
/*! @brief 第三方向微信终端发起支付的消息结构体
118122
*
119123
* 第三方向微信终端发起支付的消息结构体,微信终端处理后会向第三方返回处理结果
@@ -136,7 +140,10 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
136140

137141
@end
138142

143+
#endif
144+
139145

146+
#ifndef BUILD_WITHOUT_PAY
140147

141148
#pragma mark - PayResp
142149
/*! @brief 微信终端返回给第三方的关于支付结果的结构体
@@ -150,37 +157,7 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
150157

151158
@end
152159

153-
154-
155-
/*! @brief 第三方向微信终端发起拆企业红包的消息结构体
156-
*
157-
* 第三方向微信终端发起拆企业红包的消息结构体,微信终端处理后会向第三方返回处理结果
158-
* @see HBReq
159-
*/
160-
@interface HBReq : BaseReq
161-
162-
/** 随机串,防重发 */
163-
@property (nonatomic, retain) NSString *nonceStr;
164-
/** 时间戳,防重发 */
165-
@property (nonatomic, assign) UInt32 timeStamp;
166-
/** 商家根据微信企业红包开发文档填写的数据和签名 */
167-
@property (nonatomic, retain) NSString *package;
168-
/** 商家根据微信企业红包开发文档对数据做的签名 */
169-
@property (nonatomic, retain) NSString *sign;
170-
171-
@end
172-
173-
174-
175-
#pragma mark - HBResp
176-
/*! @brief 微信终端返回给第三方的关于拆企业红包结果的结构体
177-
*
178-
* 微信终端返回给第三方的关于拆企业红包结果的结构体
179-
*/
180-
@interface HBResp : BaseResp
181-
182-
@end
183-
160+
#endif
184161

185162

186163

@@ -351,6 +328,15 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
351328
@property (nonatomic, retain) NSString* sessionFrom;
352329
@end
353330

331+
#pragma mark - OpenTempSessionResp
332+
/*! @brief 微信终端向第三方程序返回的OpenTempSessionReq处理结果。
333+
*
334+
* 第三方程序向微信终端发送OpenTempSessionReq后,微信发送回来的处理结果,该结果用OpenTempSessionResp表示。
335+
*/
336+
@interface OpenTempSessionResp : BaseResp
337+
338+
@end
339+
354340
#pragma mark - OpenWebviewReq
355341
/* ! @brief 第三方通知微信启动内部浏览器,打开指定网页
356342
*
@@ -373,16 +359,6 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
373359

374360
@end
375361

376-
377-
#pragma mark - OpenTempSessionResp
378-
/*! @brief 微信终端向第三方程序返回的OpenTempSessionReq处理结果。
379-
*
380-
* 第三方程序向微信终端发送OpenTempSessionReq后,微信发送回来的处理结果,该结果用OpenTempSessionResp表示。
381-
*/
382-
@interface OpenTempSessionResp : BaseResp
383-
384-
@end
385-
386362
#pragma mark - OpenRankListReq
387363
/* ! @brief 第三方通知微信,打开硬件排行榜
388364
*
@@ -469,6 +445,32 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
469445
@property (nonatomic,retain) NSString* appID;
470446
@end;
471447

448+
#pragma mark - WXInvoiceItem
449+
450+
@interface WXInvoiceItem : NSObject
451+
/** 卡id
452+
* @attention 长度不能超过1024字节
453+
*/
454+
@property (nonatomic,retain) NSString* cardId;
455+
/** ext信息
456+
* @attention 长度不能超过2024字节
457+
*/
458+
@property (nonatomic,retain) NSString* extMsg;
459+
/**
460+
* @attention 卡的状态,req不需要填。resp:0为未添加,1为已添加。
461+
*/
462+
@property (nonatomic,assign) UInt32 cardState;
463+
/**
464+
* @attention req不需要填,chooseCard返回的。
465+
*/
466+
@property (nonatomic,retain) NSString* encryptCode;
467+
/**
468+
* @attention req不需要填,chooseCard返回的。
469+
*/
470+
@property (nonatomic,retain) NSString* appID;
471+
472+
@end
473+
472474
#pragma mark - AddCardToWXCardPackageReq
473475
/* ! @brief 请求添加卡券至微信卡包
474476
*
@@ -522,6 +524,28 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
522524
@property (nonatomic,retain) NSArray* cardAry;
523525
@end
524526

527+
528+
#pragma mark - WXChooseInvoiceReq
529+
/* ! @brief 请求从微信选取发票
530+
*
531+
*/
532+
@interface WXChooseInvoiceReq : BaseReq
533+
@property (nonatomic, strong) NSString *appID;
534+
@property (nonatomic, assign) UInt32 shopID;
535+
@property (nonatomic, strong) NSString *signType;
536+
@property (nonatomic, strong) NSString *cardSign;
537+
@property (nonatomic, assign) UInt32 timeStamp;
538+
@property (nonatomic, strong) NSString *nonceStr;
539+
@end
540+
541+
#pragma mark - WXChooseInvoiceResp
542+
/** ! @brief 微信返回第三方请求选择发票结果
543+
*
544+
*/
545+
@interface WXChooseInvoiceResp : BaseResp
546+
@property (nonatomic, strong) NSArray* cardAry;
547+
@end
548+
525549
#pragma mark - WXMediaMessage
526550

527551
/*! @brief 多媒体消息结构体
@@ -779,6 +803,21 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
779803

780804
@end
781805

806+
@interface WXMiniProgramObject : NSObject
807+
808+
/*! @brief WXMiniProgramObject对象
809+
*
810+
* @note 返回的WXMiniProgramObject对象是自动释放的
811+
*/
812+
+(WXMiniProgramObject *) object;
813+
814+
@property (nonatomic, strong) NSString *webpageUrl; //低版本网页链接
815+
816+
@property (nonatomic, strong) NSString *userName; //小程序username
817+
818+
@property (nonatomic, strong) NSString *path; //小程序页面的路径
819+
820+
@end
782821

783822
#pragma mark - WXTextObject
784823
/*! @brief 多媒体消息中包含的文本数据对象
@@ -800,4 +839,3 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
800839
@property (nonatomic, retain) NSString *contentText;
801840

802841
@end
803-

SDKExport/WechatAuthSDK.h

100644100755
File mode changed.

SDKExport/libWeChatSDK.a

100644100755
145 KB
Binary file not shown.

WechatKit.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "WechatKit"
3-
s.version = "0.3.0"
4-
s.summary = "一款快速实现微信第三方登录的框架(Swift3.0版) SDK1.7.6"
3+
s.version = "0.3.1"
4+
s.summary = "一款快速实现微信第三方登录的框架(Swift3.0版) SDK1.7.7"
55
s.homepage = "https://github.com/starboychina/WechatKit"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }
77
s.author = { "starboychina" => "wechatkit.github.com@kansea.com" }
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414
s.vendored_libraries = 'SDKExport/libWeChatSDK.a'
1515
s.public_header_files = 'WechatKit/*.h', 'SDKExport/*.h'
1616

17-
s.frameworks = 'SystemConfiguration', 'CoreTelephony', 'CFNetwork'
17+
s.frameworks = 'SystemConfiguration', 'Security', 'CoreTelephony', 'CFNetwork', 'UIKit'
1818
s.libraries = 'z', 'c++', 'sqlite3.0'
1919
s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC -all_load' }
2020
end

0 commit comments

Comments
 (0)