25 lines
595 B
C#
25 lines
595 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PCRobot.Utils
|
|
{
|
|
public static class WechatExtend
|
|
{
|
|
/// <summary>
|
|
/// 是否为群账号
|
|
/// </summary>
|
|
/// <param name="roomwxid"></param>
|
|
/// <returns></returns>
|
|
public static bool IsQun(this string roomwxid)
|
|
{
|
|
roomwxid = roomwxid.Trim().ToLower();
|
|
return (roomwxid.EndsWith("@chatroom") || roomwxid.EndsWith("@im.chatroom") || roomwxid.StartsWith("r:"));
|
|
}
|
|
|
|
|
|
}
|
|
}
|