拼多多界面优化 评分考核权限设置
This commit is contained in:
1 parent
ce23b0a49a
commit
05553a3ba3
46 files changed
+1269
-1170
No files matched your search
@@ -41,15 +41,19 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
|
||||
List<string> hideName = new List<string>() { "店铺地址管理", "评分考核", "子账号管理", "高级运费模板", "运费模板", "素材库管理", "订单金额统计", "工作明细统计", "店铺经营统计1" };
|
||||
|
||||
if (BaseClass.SaLevel == 1)
|
||||
{
|
||||
//hideName.Remove("店铺地址管理");
|
||||
}
|
||||
if (BaseClass.GroupId == 3)
|
||||
{
|
||||
hideName.Remove("店铺地址管理");
|
||||
hideName.Remove("子账号管理");
|
||||
hideName.Remove("评分考核");
|
||||
}
|
||||
if (BaseClass.SaLevel ==1)
|
||||
if (BaseClass.UserAuthority.Contains("评分考核"))
|
||||
{
|
||||
//hideName.Remove("店铺地址管理");
|
||||
hideName.Remove("评分考核");
|
||||
}
|
||||
|
||||
foreach (var item in hideName)
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
// 获取服务端店铺
|
||||
var serverShopList = WXShopListForm.GetServerShop();
|
||||
GlobalConfig.ShopLoginList.RemoveAll(s => serverShopList.Any(ss => ss.LoginName == s.LoginName && ss.ShopId == s.ShopId));
|
||||
GlobalConfig.ShopLoginList.RemoveAll(s => !serverShopList.Any(ss => ss.LoginName == s.LoginName && ss.ShopId == s.ShopId));
|
||||
foreach (var serverShop in serverShopList)
|
||||
{
|
||||
var localShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.LoginName == serverShop.LoginName && s.ShopId == serverShop.ShopId);
|
||||
|
||||
@@ -522,6 +522,10 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
var shopId = BaseRegex.GetStringJson(ref data, "appid");
|
||||
var nickName = BaseRegex.GetStringJson(ref data, "nickName");
|
||||
var openId = BaseRegex.GetStringJson(ref data, "openid"); // oGu7k7HxmUyOmc1X6VM7GQwS-9cI
|
||||
|
||||
if (shopId.IsNullOrEmpty() || nickName.IsNullOrEmpty() || openId.IsNullOrEmpty())
|
||||
return;
|
||||
|
||||
if (shop != null && shop.ShopId != shopId)
|
||||
{
|
||||
BaseMsgForm.ShowError("cookie与店铺不匹配,请核对店铺!");
|
||||
|
||||
Reference in new issue
Block a user