修复一个resid Cache错误

This commit is contained in:
falcon 2019-03-28 09:14:47 +08:00
parent 5502681f99
commit edaea6fccc
2 changed files with 4 additions and 2 deletions

View File

@ -90,10 +90,12 @@ namespace Cmdjy.Bll
}
private static string toJson(object value) {
if(value == null) return null;
return JsonConvert.SerializeObject(value);
}
private static T fromJson<T>(string value) {
private static T fromJson<T>(string value) where T : class {
if(value == null) return null;
return JsonConvert.DeserializeObject<T>(value);
}
}

View File

@ -17,7 +17,7 @@
<add key="AutoMigrations" value="true" />
<!--Redis服务器连接字符串,localhost:13919,password=123-->
<add key="RedisConnectionString" value="" />
<add key="RedisConnectionString" value="127.0.0.1:7001,password=123654" />
<!--万仕达接口一次最大传送处方数-->
<add key="wsd:maxCount" value="50" />