Hidistro.UI.Web/Admin/Settings/ShengPay.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Settings
{
using Hidistro.ControlPanel.Sales;
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Entities.Sales;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.ControlPanel.Utility;
using System;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class ShengPay : AdminPage
{
protected bool _enable;
protected Script Script4;
private SiteSettings siteSettings;
protected HtmlForm thisForm;
protected TextBox txt_key;
protected TextBox txt_mid;
protected ShengPay() : base("m09", "szp03")
{
this.siteSettings = SettingsManager.GetMasterSettings(false);
}
protected void Page_Load(object sender, EventArgs e)
{
if (!base.IsPostBack)
{
this.txt_mid.Text = this.siteSettings.ShenPay_mid;
this.txt_key.Text = this.siteSettings.ShenPay_key;
}
this._enable = this.siteSettings.EnableWapShengPay;
}
private void saveData()
{
if (string.IsNullOrEmpty(this.txt_mid.Text))
{
this.ShowMsg("请输入商户号!", false);
}
this.siteSettings.ShenPay_mid = this.txt_mid.Text;
if (string.IsNullOrEmpty(this.txt_key.Text))
{
this.ShowMsg("请输入商家密钥(Key)!", false);
}
this.siteSettings.ShenPay_key = this.txt_key.Text;
SettingsManager.Save(this.siteSettings);
string text = string.Format("<xml><SenderId>{0}</SenderId><SellerKey>{1}</SellerKey><Seller_account_name></Seller_account_name></xml>", this.txt_mid.Text, this.txt_key.Text);
PaymentModeInfo paymentMode = SalesHelper.GetPaymentMode("Hishop.Plugins.Payment.ShengPayMobile.ShengPayMobileRequest");
if (paymentMode == null)
{
PaymentModeInfo info2 = new PaymentModeInfo {
Name = "盛付通手机网页支付",
Gateway = "Hishop.Plugins.Payment.ShengPayMobile.ShengPayMobileRequest",
Description = string.Empty,
IsUseInpour = false,
Charge = 0M,
IsPercent = false,
后面还有 22 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
