Files
lserp_cs_6.0/插件库/Lskj.Push/Common/ServiceHelper.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

31 lines
718 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lskj.Push.Common
{
public class ServiceHelper
{
private const int MAX_BADGE_NUMBER = 99999;
private const int MIN = 100000;
private const int MAX = int.MaxValue;
public static int generateSendno()
{
Random random = new Random();
return random.Next((MAX - MIN) + 1) + MIN;
}
public static bool isValidIntBadge(int intBadge)
{
if (intBadge >= 0 && intBadge <= MAX_BADGE_NUMBER)
{
return true;
}
return false;
}
}
}