mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:53:25 +08:00
【修复】修复生成海报判断是否存在目录,而预先生成文件夹错误的问题。。
This commit is contained in:
@@ -856,10 +856,12 @@ namespace CoreCms.Net.Services
|
||||
{
|
||||
var fileName = fileNameStr;
|
||||
|
||||
|
||||
//文件硬地址
|
||||
var savePath = _webHostEnvironment.WebRootPath + "/static/qrCode/weChat/";
|
||||
var qrCodeDir = _webHostEnvironment.WebRootPath + "/static/qrCode/weChat/" + otherData;
|
||||
//如果文件夹不存在,则创建文件夹
|
||||
if (!Directory.Exists(qrCodeDir)) Directory.CreateDirectory(qrCodeDir);
|
||||
if (!Directory.Exists(savePath)) Directory.CreateDirectory(savePath);
|
||||
|
||||
//获取数据来源
|
||||
var dataObj = JObject.FromObject(data);
|
||||
|
||||
Reference in New Issue
Block a user