PSI.BLL/PayBLL.cs

(开头部分) 2KB

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

using PSI.Common;
using PSI.Models.DModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PSI.BLL
{
       public  class PayBLL
        {
                /// <summary>
                /// 进入付款页面,获取付款 列表
                /// </summary>
                /// <param name="payType"></param>
                /// <returns></returns>
                public List<PayInfoModel> GetFirstPayInfos(string payType, string strPayFor)
                {
                        List<PayInfoModel> payList = new List<PayInfoModel>();
                        string types = "现金,银行卡,微信,支付宝";
                        List<string> list = types.GetStrList(',', false);
                        int id = 0;

                        if (!string.IsNullOrEmpty(strPayFor))
                        {
                                List<string> listPayFor = strPayFor.GetStrList(';', false);
                                foreach (string str in list)
                                {
                                        id += 1;
                                        decimal money = 0;
                                        foreach (var spf in listPayFor)
                                        {
                                                if (spf.Split(' ')[0] == str)
                                                {
                                                        money = spf.Split(' ')[1].GetDecimal();
                                                        break;
                                                }
                                        }
                                        payList.Add(new PayInfoModel()
                                        {
                                                PayId = id,
                                                PayName = str,
                                                PayMoney = money,
                                                PayType = payType
                                        });
                                }
                        }
                        else
                        {
                                foreach (string str in list)
                                {
                                        id += 1;
                                        payList.Add(new PayInfoModel()
                                        {
                                                PayId = id,
                                                PayName = str,
                                                PayMoney = 0,
                                                PayType = payType
                                        });
后面还有 7 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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