Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo 1.0.0-alpha.10

This is a prerelease version of Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo.
dotnet add package Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo --version 1.0.0-alpha.10
                    
NuGet\Install-Package Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo -Version 1.0.0-alpha.10
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo" Version="1.0.0-alpha.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo" Version="1.0.0-alpha.10" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo --version 1.0.0-alpha.10
                    
#r "nuget: Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo, 1.0.0-alpha.10"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo@1.0.0-alpha.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo

契约锁电子签章服务实现,基于契约锁开放平台 API。

功能特性

  • 完整实现 IElectronicSignatureProvider:覆盖合同发起、详情、下载、查看、撤销、签署 URL、签署状态、印章、模板、回调验签全部统一方法
  • MD5 签名鉴权MD5(AppToken + AppSecret + timestamp + nonce),签名通过 HTTP headers 传递
  • 回调验签:用 AppSecret 对 payload 计算 MD5 后比对签名(不区分大小写)
  • 扩展 API 端点:通过 QueryGetAsync/QueryPostAsync/QueryUploadAsync/QueryDownloadAsync 内部方法访问契约锁全部 75 个 API 端点

安装

dotnet add package Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo
<PackageReference Include="Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo" Version="1.0.0" />

配置

{
  "Qiyuesuo": {
    "AppToken": "your-app-token",
    "AppSecret": "your-app-secret",
    "BaseUrl": "https://openapi.qiyuesuo.com"
  }
}
参数 必填 默认值 说明
AppToken 应用标识
AppSecret 应用密钥(参与 MD5 签名,不传输)
BaseUrl https://openapi.qiyuesuo.com API 基地址(沙箱 https://openapi.qiyuesuo.cn
HttpClientName QiyuesuoElectronicSignatureProvider 命名 HttpClient 标识

注册服务

using Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo;

// 方式一:IConfiguration(默认读取 "Qiyuesuo" 配置节)
services.AddBitzsoftQiyuesuoElectronicSignature(configuration);

或:

using Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo;

// 方式二:委托配置
services.AddBitzsoftQiyuesuoElectronicSignature(options =>
{
    options.AppToken = "your-app-token";
    options.AppSecret = "your-app-secret";
    options.BaseUrl = "https://openapi.qiyuesuo.com";
});

请求审计

内置 Bitzsoft.Integrations.RequestLogging 出站请求记录管道,默认 NullRequestLogStore 不持久化。

// ① 默认:启用记录管道但不持久化(日志丢弃)
services.AddBitzsoftQiyuesuoElectronicSignature(configuration);

// ② 持久化:宿主注册 IRequestLogStore 实现后,所有出站请求自动落库
services.AddRequestLogging<MyRequestLogStore>(opts =>
{
    opts.MaxInMemoryBodyBytes = 64 * 1024; // 仅控制内存/加密临时文件切换,不截断正文
    opts.SensitiveFields.Add("AppSecret");
});
services.AddBitzsoftQiyuesuoElectronicSignature(configuration);

使用示例

统一抽象

// 注入 IElectronicSignatureProvider,ProviderName == "Qiyuesuo"
var createResult = await provider.CreateContractAsync(new SimpleContractRequest
{
    Title = "采购合同",
    FileName = "contract.pdf",
    FileData = await File.ReadAllBytesAsync("contract.pdf"),
    SignerName = "张三",
    SignerPhone = "13800000000"
});

var contractId = createResult.Data!;

// 查询签署状态、下载合同
var status = await provider.GetSigningStatusAsync(contractId);
var bytes  = await provider.DownloadContractAsync(contractId);

扩展 API(partial class)

统一接口仅覆盖极简场景,复杂操作通过 QiyuesuoElectronicSignatureProvider 的 partial class 方法或内部 QueryPostAsync 调用:

var qys = (QiyuesuoElectronicSignatureProvider)provider;

// 通用 POST 查询,可访问契约锁全部 75 个端点
var result = await qys.QueryPostAsync(QiyuesuoApis.SealList, new { companyId = "org-id" });

覆盖端点分组:合同管理(22)、签署服务(14)、组织管理(13)、印章管理(10)、模板管理(8)、实名认证(7)、数据公证(5)、其他(7)。

核心类型一览

类型 说明
QiyuesuoOptions 连接配置(AppToken / AppSecret / BaseUrl / HttpClientName)
QiyuesuoElectronicSignatureProvider IElectronicSignatureProvider 实现,partial class 暴露扩展 API
QiyuesuoCallbackParser IElectronicSignatureCallbackParser 实现
QiyuesuoApis API 端点常量
QiyuesuoQueryResult 供应商响应解析

依赖

相关包

供应商 包名
统一抽象 Bitzsoft.Integrations.ElectronicSignature
君子签 Bitzsoft.Integrations.ElectronicSignature.Junziqian
法大大 Bitzsoft.Integrations.ElectronicSignature.Fadada
爱签 Bitzsoft.Integrations.ElectronicSignature.Asign
上上签 Bitzsoft.Integrations.ElectronicSignature.BestSign
e签宝 Bitzsoft.Integrations.ElectronicSignature.ESign
契约锁 Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo
安证通 Bitzsoft.Integrations.ElectronicSignature.Anzhengtong
腾讯电子签 Bitzsoft.Integrations.ElectronicSignature.Tencent
聚合包 Bitzsoft.Integrations.ElectronicSignature.All
基础工具库 Bitzsoft.Integrations.Compatibility
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Bitzsoft.Integrations.ElectronicSignature.Qiyuesuo:

Package Downloads
Bitzsoft.Integrations.All

Bitzsoft 第三方集成聚合包 — net5.0 包含传统连接器,net8.0+ 额外包含受上游 TFM 限制的 AI 模块

Bitzsoft.Integrations.ElectronicSignature.All

电子签章聚合包 — 包含君子签 / 法大大 / 爱签 / 上上签 / e签宝 / 契约锁 / 安证通 / 腾讯电子签全部实现

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.10 45 7/26/2026
1.0.0-alpha.9 64 7/12/2026
1.0.0-alpha.8 192 7/1/2026
1.0.0-alpha.7 78 6/16/2026
1.0.0-alpha.6 78 6/16/2026
1.0.0-alpha.5 79 6/14/2026
1.0.0-alpha.3 74 6/7/2026