增加微信锁电量功能
This commit is contained in:
@@ -362,6 +362,22 @@ namespace WebSite.Controllers
|
||||
var roomnum = room.RoomNumber;
|
||||
var roomModel = new RoomModel();
|
||||
|
||||
#region 电量
|
||||
|
||||
string DLKey = CacheKey.DianLiang + "_" + room.HostNumber;
|
||||
string dianliang = CSRedisCacheHelper.Get_Partition<string>(DLKey, 5);
|
||||
if (!string.IsNullOrEmpty(dianliang))
|
||||
{
|
||||
ushort usa = 0;
|
||||
ushort.TryParse(dianliang, out usa);
|
||||
roomModel.WeiXinSuo_DianLiang = usa.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
roomModel.WeiXinSuo_DianLiang = "";
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 碳达人
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append(CacheKey.CarbonVIP_Prefix);
|
||||
|
||||
Reference in New Issue
Block a user