You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Ys.Core.Common;
|
|
|
|
|
namespace djy.Paas.Model
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用于三方请求服务的
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ModuleServerDto
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 本期业务请求的RunID 必须唯一 可以是data中数据的BSno
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string RunId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 请求的用户Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UserId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 请求的业务名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Module { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
///请求的 业务模块类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string BsType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发送类型 具体操作类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string SendType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
///秒级 时间戳
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long Timestamp { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// MD5加密密文
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Md5 { get; set; }
|
|
|
|
|
|
|
|
|
|
public string _Md5str { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 执行的业务数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
public object Data { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 请求Ip
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Ip { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 计算Md5验证密文 RunId + UserId + Module + BsType+SendType + Timestamp + Key 然后MD5小写计算
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="Key"></param>
|
|
|
|
|
/// <param name="DataStr">需要加入到验证拼接的字符串</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string GetMd5(string Key,string DataStr=null)
|
|
|
|
|
{
|
|
|
|
|
string val = RunId + UserId + Module + BsType+SendType;
|
|
|
|
|
if (DataStr != null) {
|
|
|
|
|
val += DataStr;
|
|
|
|
|
}
|
|
|
|
|
val += Timestamp + Key;
|
|
|
|
|
_Md5str = val;
|
|
|
|
|
return val.ToMd5();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|