|
@@ -66,14 +66,18 @@ public class HaoDaExtQueryAuthHelper
|
|
|
{
|
|
|
LogHelper.Instance.WriteLog("starts", "获取微信商户开户意愿确认状态");
|
|
|
MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == Id) ?? new MerchantInfo();
|
|
|
+ if(merchant.Status < 2 && merchant.QueryCount < 2)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("MpMerchantActQueue", "{\"userId\":\"" + merchant.UserId + "\",\"statDate\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"statMonth\":\"" + DateTime.Now.ToString("yyyyMM") + "\"}");
|
|
|
+ }
|
|
|
info.Status = 2;
|
|
|
merchant.Status = 2;
|
|
|
+ db.SaveChanges();
|
|
|
if (merchant.Latitude == 0)
|
|
|
{
|
|
|
//签约成功调用腾讯地图接口获取地址
|
|
|
RedisDbconn.Instance.AddList("GetTencentAddressInfoQueueHd", "{\"MerChantId\":\"" + merchant.Id + "\",\"Address\":\"" + merchant.Areas + merchant.Address + "\"}");
|
|
|
}
|
|
|
- db.SaveChanges();
|
|
|
LogHelper.Instance.WriteLog("startsend", "获取微信商户开户意愿确认状态");
|
|
|
}
|
|
|
}
|
|
@@ -144,15 +148,19 @@ public class HaoDaExtQueryAuthHelper
|
|
|
{
|
|
|
LogHelper.Instance.WriteLog("start1", "获取支付宝商家认证状态");
|
|
|
MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == Id) ?? new MerchantInfo();
|
|
|
+ if(merchant.Status < 2 && merchant.QueryCount < 2)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("MpMerchantActQueue", "{\"userId\":\"" + merchant.UserId + "\",\"statDate\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"statMonth\":\"" + DateTime.Now.ToString("yyyyMM") + "\"}");
|
|
|
+ }
|
|
|
info.QueryCount = 2;
|
|
|
merchant.QueryCount = 2;
|
|
|
db.SaveChanges();
|
|
|
- LogHelper.Instance.WriteLog("start1end", "获取支付宝商家认证状态");
|
|
|
if (merchant.Latitude == 0)
|
|
|
{
|
|
|
//签约成功调用腾讯地图接口获取地址
|
|
|
RedisDbconn.Instance.AddList("GetTencentAddressInfoQueueHd", "{\"MerChantId\":\"" + merchant.Id + "\",\"Address\":\"" + merchant.Areas + merchant.Address + "\"}");
|
|
|
}
|
|
|
+ LogHelper.Instance.WriteLog("start1end", "获取支付宝商家认证状态");
|
|
|
}
|
|
|
// else
|
|
|
// {
|