mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
C#SDK提交
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using System.Text;
|
||||
using SDKCSharp.Common;
|
||||
using SDKCSharp.Utility;
|
||||
|
||||
@@ -14,8 +14,8 @@ namespace SDKCSharp.Request
|
||||
{
|
||||
private string method;
|
||||
private string format = SdkConfig.FORMAT_TYPE;
|
||||
private string charset = SdkConfig.CHARSET;
|
||||
private string signType = SdkConfig.SIGN_TYPE;
|
||||
private Encoding charset = SdkConfig.CHARSET;
|
||||
private SignType signType = SdkConfig.SIGN_TYPE;
|
||||
private string timestamp = DateTime.Now.ToString(SdkConfig.TIMESTAMP_PATTERN);
|
||||
private string version;
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace SDKCSharp.Request
|
||||
public string BizContent { set => bizContent = value; }
|
||||
public object BizModel { set => bizModel = value; }
|
||||
public string Version { get => version; set => version = value; }
|
||||
public string Charset { get => charset; set => charset = value; }
|
||||
public string SignType { get => signType; set => signType = value; }
|
||||
public Encoding Charset { get => charset; set => charset = value; }
|
||||
public SignType SignType { get => signType; set => signType = value; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回接口名
|
||||
@@ -70,8 +70,8 @@ namespace SDKCSharp.Request
|
||||
Dictionary<string, string> dict = new Dictionary<string, string>();
|
||||
dict[openConfig.MethodName] = this.Method;
|
||||
dict[openConfig.FormatName] = this.format;
|
||||
dict[openConfig.CharsetName] = this.charset;
|
||||
dict[openConfig.SignTypeName] = this.signType;
|
||||
dict[openConfig.CharsetName] = this.charset.BodyName;
|
||||
dict[openConfig.SignTypeName] = this.signType.ToString();
|
||||
dict[openConfig.TimestampName] = this.timestamp;
|
||||
dict[openConfig.VersionName] = this.version;
|
||||
|
||||
|
Reference in New Issue
Block a user