|
@@ -139,6 +139,7 @@ public class HaoDaExtQueryHelper
|
|
{
|
|
{
|
|
LogHelper.Instance.WriteLog("starts", "查询支付宝商户意愿申请状态");
|
|
LogHelper.Instance.WriteLog("starts", "查询支付宝商户意愿申请状态");
|
|
string order_status = jsonObj["alipay_merchant_indirect_authorder_querystatus_response"]["order_status"].ToString();
|
|
string order_status = jsonObj["alipay_merchant_indirect_authorder_querystatus_response"]["order_status"].ToString();
|
|
|
|
+ LogHelper.Instance.WriteLog(order_status, "查询支付宝商户意愿申请状态");
|
|
if (order_status == "CONTACT_CONFIRM")
|
|
if (order_status == "CONTACT_CONFIRM")
|
|
{
|
|
{
|
|
LogHelper.Instance.WriteLog("start1", "查询支付宝商户意愿申请状态");
|
|
LogHelper.Instance.WriteLog("start1", "查询支付宝商户意愿申请状态");
|
|
@@ -153,11 +154,21 @@ public class HaoDaExtQueryHelper
|
|
}
|
|
}
|
|
else if (order_status == "AUDIT_FREEZE")
|
|
else if (order_status == "AUDIT_FREEZE")
|
|
{
|
|
{
|
|
- LogHelper.Instance.WriteLog("start2", "查询支付宝商户意愿申请状态");
|
|
|
|
MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == Id) ?? new MerchantInfo();
|
|
MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == Id) ?? new MerchantInfo();
|
|
- info.QueryCount = -1;
|
|
|
|
- merchant.QueryCount = -1;
|
|
|
|
- info.AlipayRemark = jsonObj["alipay_merchant_indirect_authorder_querystatus_response"]["msg"].ToString();
|
|
|
|
|
|
+ LogHelper.Instance.WriteLog("start2", "查询支付宝商户意愿申请状态");
|
|
|
|
+ if(result.Contains("\"qr_code\":"))
|
|
|
|
+ {
|
|
|
|
+ info.QueryCount = 1;
|
|
|
|
+ merchant.QueryCount = 1;
|
|
|
|
+ info.AlipayRemark = "";
|
|
|
|
+ info.AlipaySignUrl = jsonObj["alipay_merchant_indirect_authorder_querystatus_response"]["qr_code"].ToString();
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ info.QueryCount = -1;
|
|
|
|
+ merchant.QueryCount = -1;
|
|
|
|
+ info.AlipayRemark = jsonObj["alipay_merchant_indirect_authorder_querystatus_response"]["msg"].ToString();
|
|
|
|
+ }
|
|
LogHelper.Instance.WriteLog("start2end", "查询支付宝商户意愿申请状态");
|
|
LogHelper.Instance.WriteLog("start2end", "查询支付宝商户意愿申请状态");
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
}
|
|
}
|