mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
返回sign处理
This commit is contained in:
27
sop-sdk/sdk-csharp/SDKCSharp/Common/SopSdkErrors.cs
Normal file
27
sop-sdk/sdk-csharp/SDKCSharp/Common/SopSdkErrors.cs
Normal 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
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user