30117125 4 年之前
父節點
當前提交
c42b5c9518

+ 2
- 0
UnivateProperties_API/Repository/Campaigns/CampaignRepository.cs 查看文件

46
 
46
 
47
             string tableItems = "<table align=center>";
47
             string tableItems = "<table align=center>";
48
             int rows;
48
             int rows;
49
+            if (campaign.ItemsPerRow == 0)
50
+                campaign.ItemsPerRow = 1;
49
             if (campaign.Items.Count % campaign.ItemsPerRow == 0)
51
             if (campaign.Items.Count % campaign.ItemsPerRow == 0)
50
             {
52
             {
51
                 rows = campaign.Items.Count / campaign.ItemsPerRow;
53
                 rows = campaign.Items.Count / campaign.ItemsPerRow;

+ 1
- 1
UnivateProperties_API/appsettings.json 查看文件

9
   },
9
   },
10
   "AllowedHosts": "*",
10
   "AllowedHosts": "*",
11
   "ConnectionStrings": {
11
   "ConnectionStrings": {
12
-    "DefaultConnection": "Data Source=localhost;Initial Catalog=UniVateDemo;Persist Security Info=True;User Id=Provision;Password=What123!;Pooling=false;",
12
+    "DefaultConnection": "Data Source=localhost;Initial Catalog=UniVate;Persist Security Info=True;User Id=Provision;Password=J%Xvk8xGeT;Pooling=false;",
13
     "TenderConnection": "http://www.unipoint-consoft.co.za/nph-srep.exe?cluvavail.sch&CLUB=LPA&RESORT=ALL&SUMMARY=N&HEAD=N",
13
     "TenderConnection": "http://www.unipoint-consoft.co.za/nph-srep.exe?cluvavail.sch&CLUB=LPA&RESORT=ALL&SUMMARY=N&HEAD=N",
14
     "ReservationsURL": "https://www.pvsl.co.za:85/ReservationsWebService.asmx", //Please note that ReservationsWebService must be in this case. 
14
     "ReservationsURL": "https://www.pvsl.co.za:85/ReservationsWebService.asmx", //Please note that ReservationsWebService must be in this case. 
15
     "ReservationsUserCode": "UniInt",
15
     "ReservationsUserCode": "UniInt",

Loading…
取消
儲存