超管 增加商铺永不过期权限

This commit is contained in:
chfei committed 2026-09-28 17:08:42 +08:00
1 parent 5bfaed02e2
commit bac53e7812
6 files changed
+148 -69

No files matched your search

+9
View File
@@ -1174,6 +1174,15 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
{ {
return await PostUtf8Async(url, postData, contentType: "application/json", timeOut: timeOut); return await PostUtf8Async(url, postData, contentType: "application/json", timeOut: timeOut);
} }
public static string PostJson(string url, object postData, int? timeOut = null)
{
return PostUtf8(url, JsonHelper.SerializeObject(postData), contentType: "application/json", timeOut: timeOut);
}
public static string PostJson(string url, string postData, int? timeOut = null)
{
return PostUtf8(url, postData, contentType: "application/json", timeOut: timeOut);
}
/// <summary> /// <summary>
/// post 数据 /// post 数据
/// </summary> /// </summary>
+5
View File
@@ -228,6 +228,11 @@ namespace AllBase.Model.Result
/// 遇到需要终止上货的提示词的重试次数。 /// 遇到需要终止上货的提示词的重试次数。
/// </summary> /// </summary>
public int upLimitRetryCount { get; set; } = 0; public int upLimitRetryCount { get; set; } = 0;
/// <summary>
/// 是否永不过期
/// </summary>
public bool never_expires { get; set; }
} }
public class AuthInfo public class AuthInfo
+1 -1
View File
@@ -296,7 +296,7 @@ namespace TemuKJD.BLL
shop.AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time") == null ? DateTime.MinValue : Convert.ToDateTime(BaseRegex.GetStringJson(ref shopStr, "add_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.is_point_shop_expire = BaseRegex.GetBoolJson(ref shopStr, "is_point_shop_expire");
shop.expire_time = BaseRegex.GetIntJson(ref shopStr, "expire_time"); shop.expire_time = BaseRegex.GetIntJson(ref shopStr, "expire_time");
shop.never_expires = BaseRegex.GetBoolJson(ref shopStr, "never_expires");
if (BaseClass.MainPath == "29pdd") if (BaseClass.MainPath == "29pdd")
{ {
shop.AntiContents.Clear(); shop.AntiContents.Clear();
+79 -62
View File
@@ -68,6 +68,10 @@ namespace TemuKJD.WXForms.AdminForms
this.btnRemainOK = new DevComponents.DotNetBar.PanelEx(); this.btnRemainOK = new DevComponents.DotNetBar.PanelEx();
this.lblAddProdRemaining = new System.Windows.Forms.Label(); this.lblAddProdRemaining = new System.Windows.Forms.Label();
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.panel3 = new System.Windows.Forms.Panel();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -96,13 +100,10 @@ namespace TemuKJD.WXForms.AdminForms
this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn(); this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
this.colUpload = new System.Windows.Forms.DataGridViewLinkColumn(); this.colUpload = new System.Windows.Forms.DataGridViewLinkColumn();
this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_never_expires = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn(); this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn(); this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.chkAutoDrag = new System.Windows.Forms.CheckBox();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.panel3 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
@@ -655,6 +656,7 @@ namespace TemuKJD.WXForms.AdminForms
this.colCopyCookies, this.colCopyCookies,
this.colUpload, this.colUpload,
this.colSubSa, this.colSubSa,
this.col_never_expires,
this.colEdit, this.colEdit,
this.colDelete, this.colDelete,
this.colMsg}); this.colMsg});
@@ -670,9 +672,59 @@ namespace TemuKJD.WXForms.AdminForms
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
this.dgvShop.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvShop_CellMouseDown); this.dgvShop.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvShop_CellMouseDown);
// //
// chkAutoDrag
//
this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.chkAutoDrag.AutoSize = true;
this.chkAutoDrag.BackColor = System.Drawing.Color.White;
this.chkAutoDrag.Location = new System.Drawing.Point(595, 0);
this.chkAutoDrag.Name = "chkAutoDrag";
this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
this.chkAutoDrag.TabIndex = 3;
this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
this.chkAutoDrag.UseVisualStyleBackColor = false;
this.chkAutoDrag.Visible = false;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = true;
this.ucSplitPage1.IsShowTotalCount = false;
this.ucSplitPage1.Location = new System.Drawing.Point(882, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.MaxPageSizeValue = 5000;
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(389, 25);
this.ucSplitPage1.TabIndex = 4;
this.ucSplitPage1.TotalCount = ((long)(0));
this.ucSplitPage1.TotalPage = 1;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1271, 25);
this.statusBar.TabIndex = 1;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.Controls.Add(this.splitContainer1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(1, 33);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1271, 576);
this.panel3.TabIndex = 35;
//
// colSelect // colSelect
// //
this.colSelect.FillWeight = 26F; this.colSelect.FillWeight = 21.69699F;
this.colSelect.HeaderText = ""; this.colSelect.HeaderText = "";
this.colSelect.Name = "colSelect"; this.colSelect.Name = "colSelect";
this.colSelect.ReadOnly = true; this.colSelect.ReadOnly = true;
@@ -681,33 +733,35 @@ namespace TemuKJD.WXForms.AdminForms
// //
// colLoginName // colLoginName
// //
this.colLoginName.FillWeight = 70F; this.colLoginName.FillWeight = 58.41498F;
this.colLoginName.HeaderText = "店铺登录号码"; this.colLoginName.HeaderText = "店铺登录号码";
this.colLoginName.Name = "colLoginName"; this.colLoginName.Name = "colLoginName";
this.colLoginName.ReadOnly = true; this.colLoginName.ReadOnly = true;
// //
// colShopId // colShopId
// //
this.colShopId.FillWeight = 70F; this.colShopId.FillWeight = 58.41498F;
this.colShopId.HeaderText = "店铺Id"; this.colShopId.HeaderText = "店铺Id";
this.colShopId.Name = "colShopId"; this.colShopId.Name = "colShopId";
this.colShopId.ReadOnly = true; this.colShopId.ReadOnly = true;
// //
// colShopAccount // colShopAccount
// //
this.colShopAccount.FillWeight = 83.44997F;
this.colShopAccount.HeaderText = "店铺账号"; this.colShopAccount.HeaderText = "店铺账号";
this.colShopAccount.Name = "colShopAccount"; this.colShopAccount.Name = "colShopAccount";
this.colShopAccount.ReadOnly = true; this.colShopAccount.ReadOnly = true;
// //
// colNotes // colNotes
// //
this.colNotes.FillWeight = 83.44997F;
this.colNotes.HeaderText = "备注"; this.colNotes.HeaderText = "备注";
this.colNotes.Name = "colNotes"; this.colNotes.Name = "colNotes";
this.colNotes.ReadOnly = true; this.colNotes.ReadOnly = true;
// //
// colGroupName // colGroupName
// //
this.colGroupName.FillWeight = 70F; this.colGroupName.FillWeight = 58.41498F;
this.colGroupName.HeaderText = "店铺分组"; this.colGroupName.HeaderText = "店铺分组";
this.colGroupName.Name = "colGroupName"; this.colGroupName.Name = "colGroupName";
this.colGroupName.ReadOnly = true; this.colGroupName.ReadOnly = true;
@@ -751,14 +805,14 @@ namespace TemuKJD.WXForms.AdminForms
// //
// colUser // colUser
// //
this.colUser.FillWeight = 67F; this.colUser.FillWeight = 55.91148F;
this.colUser.HeaderText = "所属账户"; this.colUser.HeaderText = "所属账户";
this.colUser.Name = "colUser"; this.colUser.Name = "colUser";
this.colUser.ReadOnly = true; this.colUser.ReadOnly = true;
// //
// colSubUser // colSubUser
// //
this.colSubUser.FillWeight = 67F; this.colSubUser.FillWeight = 55.91148F;
this.colSubUser.HeaderText = "子账户"; this.colSubUser.HeaderText = "子账户";
this.colSubUser.Name = "colSubUser"; this.colSubUser.Name = "colSubUser";
this.colSubUser.ReadOnly = true; this.colSubUser.ReadOnly = true;
@@ -796,7 +850,7 @@ namespace TemuKJD.WXForms.AdminForms
// //
// colGotoShop // colGotoShop
// //
this.colGotoShop.FillWeight = 46F; this.colGotoShop.FillWeight = 38.38699F;
this.colGotoShop.HeaderText = "进入店铺"; this.colGotoShop.HeaderText = "进入店铺";
this.colGotoShop.Name = "colGotoShop"; this.colGotoShop.Name = "colGotoShop";
this.colGotoShop.ReadOnly = true; this.colGotoShop.ReadOnly = true;
@@ -815,7 +869,7 @@ namespace TemuKJD.WXForms.AdminForms
// //
// colRelogin // colRelogin
// //
this.colRelogin.FillWeight = 46F; this.colRelogin.FillWeight = 38.38699F;
this.colRelogin.HeaderText = "登录"; this.colRelogin.HeaderText = "登录";
this.colRelogin.Name = "colRelogin"; this.colRelogin.Name = "colRelogin";
this.colRelogin.ReadOnly = true; this.colRelogin.ReadOnly = true;
@@ -832,7 +886,7 @@ namespace TemuKJD.WXForms.AdminForms
// //
// colBuyApi // colBuyApi
// //
this.colBuyApi.FillWeight = 46F; this.colBuyApi.FillWeight = 38.38699F;
this.colBuyApi.HeaderText = "API购买"; this.colBuyApi.HeaderText = "API购买";
this.colBuyApi.Name = "colBuyApi"; this.colBuyApi.Name = "colBuyApi";
this.colBuyApi.ReadOnly = true; this.colBuyApi.ReadOnly = true;
@@ -881,7 +935,7 @@ namespace TemuKJD.WXForms.AdminForms
// //
// colCopyCookies // colCopyCookies
// //
this.colCopyCookies.FillWeight = 70F; this.colCopyCookies.FillWeight = 58.41498F;
this.colCopyCookies.HeaderText = "复制Cookie"; this.colCopyCookies.HeaderText = "复制Cookie";
this.colCopyCookies.Name = "colCopyCookies"; this.colCopyCookies.Name = "colCopyCookies";
this.colCopyCookies.ReadOnly = true; this.colCopyCookies.ReadOnly = true;
@@ -900,11 +954,20 @@ namespace TemuKJD.WXForms.AdminForms
// //
// colSubSa // colSubSa
// //
this.colSubSa.FillWeight = 67F; this.colSubSa.FillWeight = 55.91148F;
this.colSubSa.HeaderText = "二级超管"; this.colSubSa.HeaderText = "二级超管";
this.colSubSa.Name = "colSubSa"; this.colSubSa.Name = "colSubSa";
this.colSubSa.ReadOnly = true; this.colSubSa.ReadOnly = true;
// //
// col_never_expires
//
this.col_never_expires.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.col_never_expires.FillWeight = 239.8477F;
this.col_never_expires.HeaderText = "永不过期";
this.col_never_expires.Name = "col_never_expires";
this.col_never_expires.ReadOnly = true;
this.col_never_expires.Width = 50;
//
// colEdit // colEdit
// //
this.colEdit.FillWeight = 46F; this.colEdit.FillWeight = 46F;
@@ -930,53 +993,6 @@ namespace TemuKJD.WXForms.AdminForms
this.colMsg.ReadOnly = true; this.colMsg.ReadOnly = true;
this.colMsg.Visible = false; this.colMsg.Visible = false;
// //
// chkAutoDrag
//
this.chkAutoDrag.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.chkAutoDrag.AutoSize = true;
this.chkAutoDrag.BackColor = System.Drawing.Color.White;
this.chkAutoDrag.Location = new System.Drawing.Point(595, 0);
this.chkAutoDrag.Name = "chkAutoDrag";
this.chkAutoDrag.Size = new System.Drawing.Size(159, 21);
this.chkAutoDrag.TabIndex = 3;
this.chkAutoDrag.Text = "登录时自动滑动拼图验证";
this.chkAutoDrag.UseVisualStyleBackColor = false;
this.chkAutoDrag.Visible = false;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = true;
this.ucSplitPage1.Location = new System.Drawing.Point(882, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(389, 25);
this.ucSplitPage1.TabIndex = 4;
this.ucSplitPage1.TotalPage = 1;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1271, 25);
this.statusBar.TabIndex = 1;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.Controls.Add(this.splitContainer1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(1, 33);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1271, 576);
this.panel3.TabIndex = 35;
//
// WXAdminShopListForm // WXAdminShopListForm
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1083,6 +1099,7 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies; private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
private System.Windows.Forms.DataGridViewLinkColumn colUpload; private System.Windows.Forms.DataGridViewLinkColumn colUpload;
private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa; private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
private System.Windows.Forms.DataGridViewCheckBoxColumn col_never_expires;
private System.Windows.Forms.DataGridViewLinkColumn colEdit; private System.Windows.Forms.DataGridViewLinkColumn colEdit;
private System.Windows.Forms.DataGridViewLinkColumn colDelete; private System.Windows.Forms.DataGridViewLinkColumn colDelete;
private System.Windows.Forms.DataGridViewTextBoxColumn colMsg; private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
@@ -1,7 +1,9 @@
using AllBase; using AllBase;
using AllBase.Model.Param.TemuProductManage; using AllBase.Model.Param.TemuProductManage;
using AllBase.Model.Result; using AllBase.Model.Result;
using NaiBa.Util;
using NaiBa.Util.Extension; using NaiBa.Util.Extension;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@@ -11,16 +13,16 @@ using System.Drawing;
using System.Globalization; using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using TemuKJD.BaseForms;
using TemuKJD.BLL; using TemuKJD.BLL;
using TemuKJD.Extension; using TemuKJD.Extension;
using TemuKJD.BaseForms;
using Work;
using NaiBa.Util;
using TemuKJD.WXForms.ShopForms; using TemuKJD.WXForms.ShopForms;
using Work;
namespace TemuKJD.WXForms.AdminForms namespace TemuKJD.WXForms.AdminForms
{ {
@@ -144,6 +146,7 @@ namespace TemuKJD.WXForms.AdminForms
"复制Cookie", "复制Cookie",
"上传", "上传",
shop.OperateSubSaName, shop.OperateSubSaName,
shop.never_expires,
"编辑", "编辑",
"删除"); "删除");
})); }));
@@ -218,7 +221,7 @@ namespace TemuKJD.WXForms.AdminForms
SearchShop(this.ucSplitPage1.CurrentPage); SearchShop(this.ucSplitPage1.CurrentPage);
} }
private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e) private async void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
{ {
if (e.ColumnIndex < 0 || e.RowIndex < 0) if (e.ColumnIndex < 0 || e.RowIndex < 0)
return; return;
@@ -226,7 +229,7 @@ namespace TemuKJD.WXForms.AdminForms
string loginName = dgvShop.Rows[e.RowIndex].Cells["colLoginName"].Value.ParseToString(); string loginName = dgvShop.Rows[e.RowIndex].Cells["colLoginName"].Value.ParseToString();
string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString(); string accountId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value.ParseToString();
var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName && v.ShopId == accountId); var shop = lstAdminShopInfo.FirstOrDefault(v => v.LoginName == loginName && v.ShopId == accountId);
string ownerUser = dgvShop.Rows[e.RowIndex].Cells["colUser"].Value.ParseToString();
switch (headerText) switch (headerText)
{ {
case "检测": case "检测":
@@ -324,6 +327,14 @@ namespace TemuKJD.WXForms.AdminForms
this.numAddRemaining.Value = shop.AddProductRemaining; this.numAddRemaining.Value = shop.AddProductRemaining;
this.pnlAddProdRemaining.Visible = true; this.pnlAddProdRemaining.Visible = true;
break; break;
case "永不过期":
var isNever = !(bool)dgvShop.Rows[e.RowIndex].Cells["col_never_expires"].Value;
if (await UpdateShopNeverExpires(shop.ShopId, ownerUser, isNever))
{
dgvShop.Rows[e.RowIndex].Cells["col_never_expires"].Value = isNever;
}
break;
case "": case "":
dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value; dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value;
break; break;
@@ -353,7 +364,8 @@ namespace TemuKJD.WXForms.AdminForms
int i = 1; int i = 1;
foreach (var shopInfo in shopInfoLst) foreach (var shopInfo in shopInfoLst)
{ {
Invoke(new Action(() =>{ Invoke(new Action(() =>
{
this.statusBar.pgbTaskProgress.Value = i; this.statusBar.pgbTaskProgress.Value = i;
this.statusBar.pgbTaskProgress.Text = i + "/" + shopInfoLst.Count; this.statusBar.pgbTaskProgress.Text = i + "/" + shopInfoLst.Count;
i++; i++;
@@ -755,5 +767,38 @@ namespace TemuKJD.WXForms.AdminForms
{ {
} }
private async Task<bool> UpdateShopNeverExpires(string shopid, string ownerUser, bool isnever)
{
this.pbLoading.Visible = true;
try
{
var url = BaseClass.BuildObjString("shop/UpdateShopNeverExpires");
var data = UserLogin.GetSignPostData(new
{
ShopId = shopid,
IsNever = isnever,
OwnerUser = ownerUser
});
string html = await GetHtml.PostJsonAsync(url, data);
var ret = JsonConvert.DeserializeObject<Result<bool>>(html);
if (ret.Code == 200)
{
return ret.Data;
}
return false;
}
catch
{
return false;
}
finally
{
this.pbLoading.Visible = false;
} }
} }
}
}
@@ -201,6 +201,9 @@
<metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="col_never_expires.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colEdit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="colEdit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>