From 0ae3194bdd3dd29e5ad1450328a19f7fdbe53ea9 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期二, 18 十月 2022 15:26:23 +0800
Subject: [PATCH] 没什么调整

---
 web/web/GwClient.ashx |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/web/web/GwClient.ashx b/web/web/GwClient.ashx
index 40e0def..617bcaf 100644
--- a/web/web/GwClient.ashx
+++ b/web/web/GwClient.ashx
@@ -2,6 +2,7 @@
 using System;
 using System.Web;
 using Dao;
+using Model;
 using Common;
 using System.Collections.Generic;
 using System.Configuration;
@@ -85,9 +86,9 @@
                 {
                     string Certification_StatusResult = "鏈璇�";
                     if (item.Certification_Status == 1)
-                    { 
-                            Certification_StatusResult = "宸茶璇�";
-                     }
+                    {
+                        Certification_StatusResult = "宸茶璇�";
+                    }
                     str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Top_up_Amount_Total + "鍏�</td><td>" + item.Agent + "</td><td>" + Certification_StatusResult + "</td>";
 
                     str += @"<td>";
@@ -357,6 +358,21 @@
         client.Company = company;
         _Dao.Add(client);//鎻掑叆鏁版嵁搴撱�傚垱寤鸿处鎴�
 
+        //淇濆瓨浜у搧璁板綍
+        //鑾峰彇鍚敤鐨勯粯璁ょ殑浜у搧
+        List<string> defaultProductList = GwProductDao.Instance.GetDefaultProduct();
+        if (defaultProductList.Count > 0)
+        {
+            foreach (string productId in defaultProductList)
+            {
+                GwClientProduct gcp = new GwClientProduct();
+                gcp.Id = Guid.NewGuid().ToString();
+                gcp.ClientId = clientID;
+                gcp.ProductId = productId;
+                GwClientProductDao.Instance.Add(gcp);
+            }
+        }
+
         return new JsonPageResult(true, "鍒涘缓璐︽埛鎴愬姛锛�");
     }
 }

--
Gitblit v1.9.1