Merge remote-tracking branch 'origin/main'

# Conflicts:
#	Infrastructure/Cache/RedisCacheContext.cs
main
陈伟 2 months ago
commit eb2b85b51f

@ -177,7 +177,6 @@ namespace Infrastructure.Cache
{
return server.Keys(pattern: new RedisValue(pattern));
}
/// <summary>
/// HSET - 异步设置哈希表中的多个字段。
/// </summary>
@ -188,7 +187,6 @@ namespace Infrastructure.Cache
{
iDatabase.HashSetAsync(key, hashFields, CommandFlags.None);
}
/// <summary>
/// HGETALL - 异步获取哈希表中的所有字段和值。
/// </summary>
@ -197,9 +195,8 @@ namespace Infrastructure.Cache
/// <returns></returns>
public Task<HashEntry[]> HashGetAllAsync(RedisKey key, CommandFlags flags = CommandFlags.None)
{
return iDatabase.HashGetAllAsync(key, CommandFlags.None);
return iDatabase.HashGetAllAsync(key, CommandFlags.None);
}
/// <summary>
/// Returns all the members of the set value stored at key
/// </summary>
@ -210,12 +207,10 @@ namespace Infrastructure.Cache
{
return iDatabase.SetMembersAsync(key, CommandFlags.None);
}
public Task<bool> SetAddAsync(RedisKey key, RedisValue value, CommandFlags flags = CommandFlags.None)
{
return iDatabase.SetAddAsync(key, value, CommandFlags.None);
}
public Task<bool> SetRemoveAsync(RedisKey key, RedisValue value, CommandFlags flags = CommandFlags.None)
{
return iDatabase.SetRemoveAsync(key, value, CommandFlags.None);

@ -0,0 +1,56 @@
using OpenAuth.Repository.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenAuth.App.ServiceApp.DroneDocking.Response
{
public class DroneDockRes
{
public string id { get; set; }
/// <summary>
/// Desc:无人机机场设备唯一id多个
/// Default:
/// Nullable:True
/// </summary>
public string deviceid { get; set; }
/// <summary>
/// Desc:业务类型,用于标识数据来源
/// Default:
/// Nullable:False
/// </summary>
public string bizidname { get; set; }
/// <summary>
/// Desc:下发任务名称
/// Default:
/// Nullable:True
/// </summary>
public string taskname { get; set; }
/// <summary>
/// Desc:下发任务id
/// Default:
/// Nullable:True
/// </summary>
public string taskid { get; set; }
/// <summary>
/// Desc:数据类型, 用于后续成果上传获取上传路径
/// Default:
/// Nullable:False
/// </summary>
public string datacode { get; set; }
/// <summary>
/// 任务是否开始执行0未开始1已开始2已完成3已取消
/// </summary>
public int state { get; set; }
public DateTime? createtime { get; set; }
public List<DroneDocktaskdetail> tasklist { get; set; }
}
}

@ -92,6 +92,7 @@ namespace OpenAuth.Repository.Domain
/// Nullable:True
/// </summary>
public string taskid {get;set;}
//飞行任务id
public string flighttaskid { get;set;}
}
}

@ -403,5 +403,39 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
}
}
/// <summary>
/// 校验token
/// </summary>
/// <param name="token"></param>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public Response<bool> VerifyToken(string token)
{
Response<bool> result= new Response<bool>();
try
{
var tokenflag = _helper.Verify(token);
if (tokenflag)
{
result.Message = "校验成功";
result.Result = true;
}
else
{
result.Message = "校验失败";
result.Result = false;
result.Code = 500;
}
return result ;
}
catch (Exception ex)
{
result.Code = 500;
result.Message = "error";
return result;
}
}
}
}

@ -18,7 +18,7 @@
},
"UploadPath": "", //
"RedisConf": {
"Conn": "175.27.168.120:6050,password=HopetryRedis1406",
"Conn": "123.132.248.154:9253,password=HopetryRedis1406",
"Database": 1
}, //redis
"HttpHost": "http://*:10010 ", //

@ -22,7 +22,7 @@
"UploadPath": "",
//
"RedisConf": {
"Conn": "175.27.168.120:6050,password=HopetryRedis1406",
"Conn": "123.132.248.154:9253,password=HopetryRedis1406",
//"Conn": "127.0.0.1:6379,password=123456",
"Database": 7
},

Loading…
Cancel
Save