增加图片验证码
This commit is contained in:
@@ -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 = "水印图片不存在,请重新上传!";
|
||||
|
||||
Reference in New Issue
Block a user