返回sign处理

This commit is contained in:
tanghc
2019-06-27 19:20:23 +08:00
parent 800f7e8d82
commit eb179632c8
22 changed files with 472 additions and 238 deletions

View File

@@ -0,0 +1,27 @@
using System;
namespace SDKCSharp.Common
{
public class SopSdkErrors
{
/// <summary>
/// 网络错误
/// </summary>
public static ErrorResponse HTTP_ERROR = BuildErrorResponse("836875001", "网络错误");
/// <summary>
/// 验证返回sign错误
/// </summary>
public static ErrorResponse CHECK_RESPONSE_SIGN_ERROR = BuildErrorResponse("836875002", "验证服务端sign出错");
public static ErrorResponse BuildErrorResponse(string code, string msg)
{
return new ErrorResponse
{
Code = code,
SubCode = code,
SubMsg = msg,
Msg = msg
};
}
}
}