Backup/Discuz.Plugin/Payment/TradeInfo/DigitalTrade.cs

(开头部分) 17KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;

using Discuz.Config;

namespace Discuz.Plugin.Payment.Alipay
{
    /// <summary>
    /// 虚拟商品交易信息类
    /// </summary>
    public class DigitalTrade : Discuz.Plugin.Payment.ITrade
    {
        #region 成员变量

        protected string _input_charset = "utf-8";  //或gbk等
        protected string _agent;
        protected string _sign = "gh0bis45h89m5mwcoe85us4qrwispes0";
        protected string _sign_type = "MD5";
        protected string _body;
        protected string _subject;
        protected string _out_trade_no;
        protected decimal _price;
        protected string _show_url;
        protected int _quantity;
        protected int _payment_type;
        protected string _partner = "2088002872555901";
        protected string _notify_url;
        protected string _return_url;
        protected string _seller_email;
        protected string _seller_id;
        protected string _buyer_email;
        protected string _buyer_id;
        protected string _buyer_msg;
        protected string _royaltyprice;
        protected string _pay_method = "bankPay";
        #endregion

        protected int userCustomPartnerId = GeneralConfigs.GetConfig().Usealipaycustompartnerid;



        #region 构造函数

        public DigitalTrade()
        {
            TradeConfigInfo tradeConfigInfo = TradeConfigs.GetConfig();
            _input_charset = tradeConfigInfo.Alipayconfiginfo.Inputcharset;
            _partner = tradeConfigInfo.Alipayconfiginfo.Partner;
            _sign = tradeConfigInfo.Alipayconfiginfo.Sign;
            //tradeConfigInfo.Alipayconfiginfo.Inputcharset = "utf-8";
            //tradeConfigInfo.Alipayconfiginfo.Partner = "2088002052150939";
            //tradeConfigInfo.Alipayconfiginfo.Sign = "gh0bis45h89m5mwcoe85us4qrwispes0";
            TradeConfigs.SaveConfig(tradeConfigInfo);
        }

        #endregion

        #region 属性

        #region Discuz支付配置参数
后面还有 505 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。