1688上传类目转换等优化 充值用户服务充值和用户续费店铺功能
This commit is contained in:
1 parent
ecb291e3d7
commit
aab73b978f
56 files changed
+4532
-1748
No files matched your search
@@ -252,13 +252,13 @@ namespace TemuKJD.BLL
|
||||
return true;
|
||||
}
|
||||
|
||||
public static List<ShopLoginInfo> DeserializationShop(string shopJson)
|
||||
public static List<ShopLoginInfo> DeserializationShop(string shopJson, string shopDataName = "data")
|
||||
{
|
||||
List<ShopLoginInfo> list = new List<ShopLoginInfo>();
|
||||
if (!shopJson.Contains("data"))
|
||||
if (!shopJson.Contains(shopDataName))
|
||||
return list;
|
||||
|
||||
var jArr = JObject.Parse(shopJson)["data"];
|
||||
var jArr = JObject.Parse(shopJson)[shopDataName];
|
||||
if (jArr.Count() == 0)
|
||||
return list;
|
||||
|
||||
@@ -294,6 +294,8 @@ namespace TemuKJD.BLL
|
||||
shop.openid = BaseRegex.GetStringJson(ref shopStr, "openid");
|
||||
shop.jit_expire_time = BaseRegex.GetStringJson(ref shopStr, "jit_expire_time") == null ? new DateTime?() : Convert.ToDateTime(BaseRegex.GetStringJson(ref shopStr, "jit_expire_time"));
|
||||
shop.AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time") == null ? DateTime.MinValue : Convert.ToDateTime(BaseRegex.GetStringJson(ref shopStr, "add_time"));
|
||||
shop.is_point_shop_expire = BaseRegex.GetBoolJson(ref shopStr, "is_point_shop_expire");
|
||||
shop.expire_time = BaseRegex.GetIntJson(ref shopStr, "expire_time");
|
||||
|
||||
if (BaseClass.MainPath == "binxixi")
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user