Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
0d18bb67
Commit
0d18bb67
authored
Nov 16, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b966f73d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
26 deletions
+59
-26
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+12
-10
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+47
-16
No files found.
Mall.Module.Product/OrderModule.cs
View file @
0d18bb67
...
...
@@ -4564,26 +4564,28 @@ namespace Mall.Module.Product
//进阶小课堂回调
if
(
demodel
.
TenantId
==
27
&&
demodel
.
OrderStatus
==
OrderStatusEnum
.
Completed
)
{
Task
.
Run
(()
=>
Task
.
Factory
.
StartNew
(()
=>
{
try
{
string
url
=
Common
.
Config
.
JJSWAdminApi
+
"/api/Third/SynchronousMallOrder"
;
var
postData
=
new
{
Msg
=
new
new
{
OrderId
=
OrderId
}
};
Msg
=
new
{
OrderId
=
OrderId
}
};
string
str
=
HttpHelper
.
HttpPost
(
url
,
Common
.
Plugin
.
JsonHelper
.
Serialize
(
postData
));
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
"SetAppletGoodsOrderInfo_更新小课堂订单::"
+
OrderId
+
" Result::"
+
str
);
}
catch
catch
(
Exception
ex
)
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
"SetAppletGoodsOrderInfo_更新小课堂订单::"
+
OrderId
);
}
});
}
,
TaskCreationOptions
.
LongRunning
);
}
return
ApiResult
.
Success
(
""
,
new
{
OrderId
,
demodel
.
OrderStatus
});
}
...
...
Mall.Module.User/UserCommonModule.cs
View file @
0d18bb67
...
...
@@ -23,6 +23,7 @@ using Mall.Common.Enum.User;
using
Mall.Repository.Education
;
using
Mall.ThirdCore.Adapay.Model
;
using
Newtonsoft.Json.Linq
;
using
System.Threading.Tasks
;
namespace
Mall.Module.User
{
...
...
@@ -832,6 +833,32 @@ namespace Mall.Module.User
UserId
=
umodel
.
Id
});
#
endregion
//进阶小课堂 HK 2022-11-16新增
if
(
umodel
.
MallBaseId
==
17
)
{
Task
.
Factory
.
StartNew
(()
=>
{
try
{
string
url
=
Common
.
Config
.
JJSWAdminApi
+
"/api/Third/SynchronousMallOrder"
;
var
postData
=
new
{
Msg
=
new
{
OrderId
=
OrderId
}
};
string
str
=
HttpHelper
.
HttpPost
(
url
,
Common
.
Plugin
.
JsonHelper
.
Serialize
(
postData
));
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
"InsertOrderPayInfo_更新小课堂订单::"
+
OrderId
+
" Result::"
+
str
);
}
catch
(
Exception
ex
)
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
"InsertOrderPayInfo_更新小课堂订单::"
+
OrderId
);
}
},
TaskCreationOptions
.
LongRunning
);
}
}
return
flag
;
}
...
...
@@ -2638,24 +2665,28 @@ namespace Mall.Module.User
}
appletWeChatModule
.
SendOrderSucceedMsg
(
oldOrder
.
TenantId
,
oldOrder
.
MallBaseId
,
umodel
.
OpenId
,
oldOrder
.
OrderNo
,
oldOrder
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
(
oldOrder
.
Income
??
0
).
ToString
(),
goodsName
);
}
try
Task
.
Factory
.
StartNew
(()
=>
{
string
url
=
Common
.
Config
.
JJSWAdminApi
+
"/api/Third/SynchronousMallOrder"
;
var
postData
=
new
{
Msg
=
new
try
{
string
url
=
Common
.
Config
.
JJSWAdminApi
+
"/api/Third/SynchronousMallOrder"
;
var
postData
=
new
{
OrderId
=
OrderId
}
};
string
str
=
HttpHelper
.
HttpPost
(
url
,
Common
.
Plugin
.
JsonHelper
.
Serialize
(
postData
));
}
catch
{
}
Msg
=
new
{
OrderId
=
OrderId
}
};
string
str
=
HttpHelper
.
HttpPost
(
url
,
Common
.
Plugin
.
JsonHelper
.
Serialize
(
postData
));
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
"InsertAdapayOrderTrade_更新小课堂订单::"
+
OrderId
+
" Result::"
+
str
);
}
catch
(
Exception
ex
)
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
"InsertAdapayOrderTrade_更新小课堂订单::"
+
OrderId
);
}
},
TaskCreationOptions
.
LongRunning
);
return
flag
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment