增加图片验证码

This commit is contained in:
2021-01-11 16:02:17 +08:00
parent 372265d89a
commit a9bdec611c
7 changed files with 372 additions and 9 deletions
@@ -179,8 +179,8 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
{
if (!string.IsNullOrWhiteSpace(model.WaterMarkImg))
{
string imgPath = _env.WebRootPath + model.WaterMarkImg.Replace("/", "\\");
NewLife.Log.XTrace.WriteLine(_env.WebRootPath + "|" + Path.Combine(_env.WebRootPath, model.WaterMarkImg) + "|" + imgPath);
string imgPath = _env.WebRootPath + model.WaterMarkImg.Replace("/", Path.DirectorySeparatorChar.ToString());
//NewLife.Log.XTrace.WriteLine(_env.WebRootPath + "|" + Path.Combine(_env.WebRootPath, model.WaterMarkImg) + "|" + imgPath);
if (!System.IO.File.Exists(imgPath))
{
tip.Message = "水印图片不存在,请重新上传!";