|
@@ -95,18 +95,22 @@ namespace MySystem
|
|
MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == sign.MerchantAddInfoId);
|
|
MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == sign.MerchantAddInfoId);
|
|
if (merchant != null)
|
|
if (merchant != null)
|
|
{
|
|
{
|
|
|
|
+ if(merchant.Status < 2 && merchant.QueryCount < 2)
|
|
|
|
+ {
|
|
|
|
+ RedisDbconn.Instance.AddList("MpMerchantActQueue", "{\"userId\":\"" + merchant.UserId + "\",\"statDate\":\"" + DateTime.Now.ToString("yyyyMMdd") + "\",\"statMonth\":\"" + DateTime.Now.ToString("yyyyMM") + "\"}");
|
|
|
|
+ }
|
|
merchant.Status = 2;
|
|
merchant.Status = 2;
|
|
if(merchant.SignDate == null)
|
|
if(merchant.SignDate == null)
|
|
{
|
|
{
|
|
merchant.SignDate = DateTime.Now;
|
|
merchant.SignDate = DateTime.Now;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ db.SaveChanges();
|
|
if (merchant.Latitude == 0)
|
|
if (merchant.Latitude == 0)
|
|
{
|
|
{
|
|
//签约成功调用腾讯地图接口获取地址
|
|
//签约成功调用腾讯地图接口获取地址
|
|
RedisDbconn.Instance.AddList("GetTencentAddressInfoQueue", "{\"MerChantId\":\"" + merchant.Id + "\",\"Address\":\"" + merchant.Areas + merchant.Address + "\"}");
|
|
RedisDbconn.Instance.AddList("GetTencentAddressInfoQueue", "{\"MerChantId\":\"" + merchant.Id + "\",\"Address\":\"" + merchant.Areas + merchant.Address + "\"}");
|
|
}
|
|
}
|
|
- db.SaveChanges();
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if (dic["applyment_state"].ToString() == "APPLYMENT_STATE_REJECTED")
|
|
else if (dic["applyment_state"].ToString() == "APPLYMENT_STATE_REJECTED")
|