Hidistro.UI.Web/Admin/Fenxiao/BranchAddDistributors.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Fenxiao
{
using Hidistro.ControlPanel.Members;
using Hidistro.ControlPanel.Store;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.ControlPanel.Utility;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class BranchAddDistributors : AdminPage
{
protected Button batchCreate;
protected Button btnExport;
protected HtmlGenericControl EditTitle;
private static IList<string> exportdistirbutors;
protected HtmlInputRadioButton radioaccount;
protected HtmlInputRadioButton radionumber;
protected Hidistro.UI.Common.Controls.Style Style1;
protected HtmlTextArea txtdistributornames;
protected HtmlInputText txtnumber;
protected HtmlInputText txtslsdistributors;
protected BranchAddDistributors() : base("m05", "fxp07")
{
}
private void batchCreate_Click(object sender, EventArgs e)
{
try
{
string distributorname = this.txtslsdistributors.Value;
int referruserId = MemberHelper.IsExiteDistributorNames(distributorname);
if (string.IsNullOrEmpty(distributorname) || (referruserId <= 0))
{
this.ShowMsg("输入的推荐分销商不存在!", false);
}
else if (this.radionumber.Checked)
{
if (string.IsNullOrEmpty(this.txtnumber.Value.Trim()))
{
this.ShowMsg("请输入要生成的账号数量", false);
}
else
{
int result = 0;
int.TryParse(this.txtnumber.Value, out result);
if ((result <= 0) || (result > 0x3e7))
{
this.ShowMsg("数值必须在1~999之间的正整数", false);
}
else if (this.CheckDistributorIsCanAuthorization(result))
{
exportdistirbutors = MemberHelper.BatchCreateMembers(this.CreateDistributros(result), referruserId, "1");
this.ShowMsg("批量制作成功", true);
后面还有 120 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
