1.界面优化调整 2.618取消活动 3.清理无流量新 4.用户商品库1688及拼多多外部商品入库逻辑优化 5.带百分号的属性微信上货优化 6.数据库产品在不同用户间迁移 7.删除店铺功能开放给充值用户防止店铺导入错误无法删除

This commit is contained in:
wule committed 2026-06-11 11:38:08 +08:00
1 parent 2759ff0f6d
commit 0a9980335f
59 files changed
+3078 -652

No files matched your search

+2 -2
View File
@@ -13,14 +13,14 @@ namespace TemuKJD.WXForms.ShopForms
{
public partial class UcSubAccount : UserControl
{
public ShopSubAccountInfo subAccount = null;
public UserSubAccountInfo subAccount = null;
public delegate void SubAcountDelegate(object obj);
public event SubAcountDelegate AddSubAcountEvent;
public event SubAcountDelegate RemoveSubAcountEvent;
public UcSubAccount(ShopSubAccountInfo _subAccount, bool isNotShopSubAccount = true)
public UcSubAccount(UserSubAccountInfo _subAccount, bool isNotShopSubAccount = true)
{
InitializeComponent();
subAccount = _subAccount;
@@ -262,6 +262,7 @@ namespace TemuKJD.WXForms.ShopForms
try
{
getEditProdRst = WXUpload.getEditProductV2(shop, prodId);
Thread.Sleep(Randomx.GetId(50, 100));
if (getEditProdRst.Contains("biz magic invalid"))
{
@@ -302,10 +303,11 @@ namespace TemuKJD.WXForms.ShopForms
return "店铺商品采集失败!" + errmsg;
}
var addressStr = JsonHelper.JObjectParse(addressRst)["addressList"].FirstOrDefault().ParseToString();
wxProdInfoLite.address = JsonHelper.DeserializeJsonToObject<WXAfterSaleAddressInfo>(addressStr);
if (wxProdInfoLite.address == null)
return "店铺商品采集失败!商品详情获取失败";
var addressStr = JsonHelper.JObjectParse(addressRst)["addressList"]?.FirstOrDefault().ParseToString();
if (!string.IsNullOrWhiteSpace(addressStr))
wxProdInfoLite.address = JsonHelper.DeserializeJsonToObject<WXAfterSaleAddressInfo>(addressStr);
//if (wxProdInfoLite.address == null)
// return "店铺商品采集失败!商品详情获取失败";
// 查看下json结构
var wxProdInfoLiteStr = JsonHelper.SerializeObject(wxProdInfoLite);
@@ -385,9 +387,13 @@ namespace TemuKJD.WXForms.ShopForms
data += "&ext_code=" + wxEditProdInfoLite.product.info.spuCode;
data += "&product_name=" + HttpUtility.UrlEncode(wxEditProdInfoLite.product.info.title, Encoding.UTF8) +
"&product_json=" + HttpUtility.UrlEncode(JsonHelper.SerializeObject(wxEditProdInfoLite), Encoding.UTF8) +
"&size_json=" + HttpUtility.UrlEncode("{}", Encoding.UTF8) +
"&sale_count=" +
"&sale_count_text=" +
"&size_json=" + HttpUtility.UrlEncode("{}", Encoding.UTF8);
var getListProdRst = WXUpload.searchProductWithSpuId(shop, prodId).ParseToString();
var totalSoldNum = BaseRegex.GetStringJson(ref getListProdRst, "totalSoldNum");
data += "&sale_count=" + totalSoldNum +
"&sale_count_text=" + totalSoldNum +
"&main_img=" + HttpUtility.UrlEncode(wxEditProdInfoLite.product.info.headImg.FirstOrDefault(), Encoding.UTF8) +
"&wx_safe_status=" + HttpUtility.UrlEncode(wx_safe_status, Encoding.UTF8) +
"&product_get_type=" + HttpUtility.UrlEncode("微信店采", Encoding.UTF8);
@@ -423,6 +429,8 @@ namespace TemuKJD.WXForms.ShopForms
{
data += "&view_uv=" + viewUv;
}
data += "&send_to_out_server=127";
data += "&distribution_set=127";
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
@@ -240,7 +240,7 @@ namespace TemuKJD.WXForms.ShopForms
// shop.ShopSubAccountList.Clear();
// if (!string.IsNullOrWhiteSpace(shop.SubUserName))
// {
// ShopSubAccountInfo subAccount = new ShopSubAccountInfo();
// UserSubAccountInfo subAccount = new UserSubAccountInfo();
// subAccount.sub_user_name = shop.SubUserName;
// subAccount.user_name = shop.SubUserName;
// subAccount.shop_login_name = shop.LoginName;
+5 -5
View File
@@ -583,7 +583,7 @@ namespace TemuKJD.WXForms.ShopForms
param.is_point_shop_expire ? "" : "导入Cookie",
param.is_point_shop_expire ? "" : "复制Cookie",
param.is_point_shop_expire ? "" : "编辑",
param.is_point_shop_expire ? "" : "删除");
param.is_point_shop_expire ? "删除" : "删除");
if (!isRefresh)
{
// help to scroll to latest checked
@@ -628,7 +628,7 @@ namespace TemuKJD.WXForms.ShopForms
dgvr.Cells["colUpdateCookies"].Value = param.is_point_shop_expire ? "" : "导入Cookie";
dgvr.Cells["colCopyCookies"].Value = param.is_point_shop_expire ? "" : "复制Cookie";
dgvr.Cells["colEdit"].Value = param.is_point_shop_expire ? "" : "编辑";
dgvr.Cells["colDelete"].Value = param.is_point_shop_expire ? "" : "删除";
dgvr.Cells["colDelete"].Value = param.is_point_shop_expire ? "删除" : "删除";
@@ -790,7 +790,7 @@ namespace TemuKJD.WXForms.ShopForms
shop.ShopSubAccountList.Clear();
if (!string.IsNullOrWhiteSpace(shop.SubUserName))
{
ShopSubAccountInfo subAccount = new ShopSubAccountInfo();
UserSubAccountInfo subAccount = new UserSubAccountInfo();
subAccount.sub_user_name = shop.SubUserName;
subAccount.user_name = shop.SubUserName;
subAccount.shop_login_name = shop.LoginName;
@@ -1251,7 +1251,7 @@ namespace TemuKJD.WXForms.ShopForms
data += "&option_type=" + "续费";
data += "&operator_type=" + "用户";
data += "&operator_name=" + BaseClass.UserName;
data += "&delta_points=" + (numAddTopUp.Value * 30).ParseToInt();
data += "&delta_points=" + (numAddTopUp.Value * BaseClass.ShopPointsPerMonth).ParseToInt();
data += "&shop_id=" + shopId;
data += "&shop_account=" + shop.ShopAccount;
@@ -1291,7 +1291,7 @@ namespace TemuKJD.WXForms.ShopForms
private void numAddTopUp_ValueChanged(object sender, EventArgs e)
{
this.txtPrice.Text = "预计续费点数:" + (numAddTopUp.Value * lblShopId.Text.Split(';').Length * 30).ParseToString();
this.txtPrice.Text = "预计续费点数:" + (numAddTopUp.Value * lblShopId.Text.Split(';').Length * BaseClass.ShopPointsPerMonth).ParseToString();
}
private void btnBatchRenewal_Click(object sender, EventArgs e)
@@ -16,7 +16,7 @@ namespace TemuKJD.WXForms.ShopForms
{
public partial class WXSubAccountListForm : BaseForm
{
public static List<ShopSubAccountInfo> AllUsers { get; set; } = new List<ShopSubAccountInfo>();
public static List<UserSubAccountInfo> AllUsers { get; set; } = new List<UserSubAccountInfo>();
public MainForm Mf { get; set; } = null;
public string Uid { get; set; } = "";
public WXSubAccountListForm()
@@ -120,7 +120,7 @@ namespace TemuKJD.WXForms.ShopForms
foreach (Newtonsoft.Json.Linq.JObject obj in userObj["data"])
{
string oStr = JsonHelper.SerializeObject(obj);
ShopSubAccountInfo user = new ShopSubAccountInfo();
UserSubAccountInfo user = new UserSubAccountInfo();
user.id = BaseRegex.GetIntJson(ref oStr, "id");
user.user_name = BaseRegex.GetStringJson(ref oStr, "user_name");
user.nick_name = BaseRegex.GetStringJson(ref oStr, "nick_name");
@@ -16,10 +16,10 @@ namespace TemuKJD.WXForms.ShopForms
{
public partial class WXSubAccountShopEditForm : BaseGeneralForm
{
public static List<ShopSubAccountInfo> lstAllSubAccount { get; set; } = new List<ShopSubAccountInfo>();
public static List<UserSubAccountInfo> lstAllSubAccount { get; set; } = new List<UserSubAccountInfo>();
public List<ShopSubAccountInfo> ShopSubAccountList { get; set; } = new List<ShopSubAccountInfo>();
public List<ShopSubAccountInfo> NotShopSubAccountList { get; set; } = new List<ShopSubAccountInfo>();
public List<UserSubAccountInfo> ShopSubAccountList { get; set; } = new List<UserSubAccountInfo>();
public List<UserSubAccountInfo> NotShopSubAccountList { get; set; } = new List<UserSubAccountInfo>();
ShopLoginInfo shop = null;
@@ -87,7 +87,7 @@ namespace TemuKJD.WXForms.ShopForms
foreach (Newtonsoft.Json.Linq.JObject obj in userObj["data"])
{
string oStr = JsonHelper.SerializeObject(obj);
ShopSubAccountInfo user = new ShopSubAccountInfo();
UserSubAccountInfo user = new UserSubAccountInfo();
user.id = BaseRegex.GetIntJson(ref oStr, "id");
user.nick_name = BaseRegex.GetStringJson(ref oStr, "nick_name");
user.user_name = BaseRegex.GetStringJson(ref oStr, "user_name");
@@ -147,8 +147,8 @@ namespace TemuKJD.WXForms.ShopForms
private void btnOk_Click(object sender, EventArgs e)
{
List<ShopSubAccountInfo> AddUsers = new List<ShopSubAccountInfo>();
List<ShopSubAccountInfo> DeleteUsers = new List<ShopSubAccountInfo>();
List<UserSubAccountInfo> AddUsers = new List<UserSubAccountInfo>();
List<UserSubAccountInfo> DeleteUsers = new List<UserSubAccountInfo>();
foreach (Control c in this.flpNotSubAccount.Controls)
{
var co = c as UcSubAccount;