|
|
@@ -784,20 +784,45 @@ namespace SiteCore.Handler
|
|
|
string tid = GetPostString("tid");
|
|
|
int UserID = GetPostInt("UserID");
|
|
|
string atta = GetPostString("atta");
|
|
|
+ string ctid = GetPostString("ctid");
|
|
|
+ string systemRemark = GetPostString("systemRemark");
|
|
|
if (!string.IsNullOrEmpty(tid))
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(atta))
|
|
|
{
|
|
|
returnErrorMsg("文件地址为空");
|
|
|
+ return;
|
|
|
}
|
|
|
CeErpTrade ceErpTrade = CeErpTrade.Get(tid);
|
|
|
if (ceErpTrade == null)
|
|
|
{
|
|
|
returnErrorMsg("找不到订单");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ CeErpTradeCell ceErpTradeCell = null;
|
|
|
+ if (string.IsNullOrEmpty(ctid))
|
|
|
+ {
|
|
|
+ ceErpTradeCell = CeErpTradeCell.GetByCtid(ctid);
|
|
|
+ if (ceErpTradeCell == null)
|
|
|
+ {
|
|
|
+ returnErrorMsg("找不到订单");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (ceErpTradeCell.OrderState > 5)
|
|
|
+ {
|
|
|
+ returnErrorMsg("订单状态不正确");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (ceErpTradeCell != null && !string.IsNullOrEmpty(systemRemark))
|
|
|
+ {
|
|
|
+ ceErpTradeCell.seller_memo = systemRemark;
|
|
|
+ LogHelper.addLog(tid, UserID, "上传文件地址修改备注:" + systemRemark, 6);
|
|
|
+ ceErpTradeCell.Update();
|
|
|
}
|
|
|
- ceErpTrade.Attachments = atta;
|
|
|
+ ceErpTrade.Attachments = "https://dfdiyfile.oss-cn-fuzhou.aliyuncs.com/" + atta;
|
|
|
ceErpTrade.Update();
|
|
|
- LogHelper.addLog(tid, UserID, "上传文件地址", 6);
|
|
|
+ LogHelper.addLog(tid, UserID, "上传文件地址:" + ceErpTrade.Attachments, 6);
|
|
|
returnSuccessMsg("上传成功!");
|
|
|
return;
|
|
|
}
|