4 Star 0 Fork 0

jlpaysdk / JLPayESign

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

接入方式

1、pod方式引入

在 podfile 文件中添加 source,并加入JLPayESign;加入后执行 pod update;

platform :ios, '11.0'

source  'https://github.com/CocoaPods/Specs.git'
source  'https://gitee.com/jlpaysdk/ios-specs.git'

pod 'JLPayESign','~> 1.1.0'

2、Framework 方式引入

https://gitee.com/jlpaysdk/jlpay-esign 中找到最新的 tag,下载完成之后,将JLPayESign.xcframework(1.0.0版本 JLPayESign.framework)引入到接入的项目工程中,引入过程中勾选“Copy items if needed”。

添加依赖的系统 Framework:UIKit、Foundation、AVFoundation

3、隐私权限

1.Other Linker Flags 设置为 -ObjC 2.项目*.plist文件设置

  • 1)定位权限 Privacy - Location Always and When In Use Usage Description Privacy - Location Always Usage Description Privacy - Location Usage Description Privacy - Location When In Use Usage Description
  • 2)麦克风权限 Privacy - Microphone Usage Description
  • 3)相册权限 Privacy - Photo Library Additions Usage Description Privacy - Photo Library Usage Description

4、方法说明

1.在调用处引入头文件
import < JLPayESignClient.h >
  
2.日志输出方法:
/// 是否开启log输出,默认debug开启,其他关闭
/// @param enable YES 或者 NO
+ (void)logEnable:(BOOL)enable;

3.SDK加载方法
/// 启动方法
/// @param appId 分配的appId
/// @param fromVC 当前控制器
/// @param successBlock 成功回调
/// @param failBlock 失败回调
+ (void)startWithAppId:(NSString *_Nonnull)appId
                fromVC:(UIViewController *_Nullable)fromVC
               success:(JLSuccessBlock)successBlock
                  fail:(JLFailBlock)failBlock;

4.sdk版本号
/// sdk版本号
+ (NSString *)sdkVersion;

5.sdk错误码说明
描述:SDK加载错误以“JLPayESignErrorModel”的对象形式返回,包含属性:ret_coderet_msg。其中ret_code为错误码,ret_msg为错误描述。查找具体的问题原因,需要提供以上两个返回值。

对象示例:
@interface JLPayESignErrorModel : NSObject
/** 错误码 */
@property (nonatomic, copy) NSString *ret_code;
/** 错误描述 */
@property (nonatomic, copy) NSString *ret_msg;
@end

版本记录

MIT License Copyright (c) 2021 JLPayESign Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Objective-C 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jlpaysdk/jlpay-esign.git
git@gitee.com:jlpaysdk/jlpay-esign.git
jlpaysdk
jlpay-esign
JLPayESign
master

搜索帮助