|
@@ -297,7 +297,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
maindb.SaveChanges();
|
|
|
if (PayMode == 1)
|
|
|
{
|
|
|
- string backString = new AlipayFunction(_accessor.HttpContext).CreateTrade(OrderNo, merchant.Name, PayMoney, openid, merchantAdd.AlipayAuthToken, SourceHost + "api/alipay/notice");
|
|
|
+ string backString = new AlipayFunction(_accessor.HttpContext).CreateTrade(OrderNo, merchant.Name, PayMoney, openid, merchantAdd.AlipayAuthToken, SpHost + "/api/alipay/notice");
|
|
|
JsonData obj = JsonMapper.ToObject(backString);
|
|
|
if (obj["alipay_trade_create_response"]["code"].ToString() == "10000")
|
|
|
{
|
|
@@ -318,7 +318,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
string Description = merchant.Name;
|
|
|
string OpenId = openid;
|
|
|
string Key = AppConfig.WeChatParam.AesGemKey;
|
|
|
- string NotifyUrl = SourceHost + "/api/wechat/notice";
|
|
|
+ string NotifyUrl = SpHost + "/api/wechat/notice";
|
|
|
Dictionary<string, string> dic = new WeChatFunction(_accessor.HttpContext).Pay(SubMchId, PayMoney, OrderNo, Description, OpenId, Key, NotifyUrl, ActFlag);
|
|
|
Obj.Add("appId", dic["appId"]); //微信小程序appid
|
|
|
Obj.Add("timeStamp", dic["timeStamp"]); //时间戳
|