浏览代码

Awaiting payment default status

master
30117125 4 年前
父节点
当前提交
a2d0199dca

+ 4
- 1
UnivateProperties_API/Controllers/Financial/RedirectController.cs 查看文件

42
             if (context.TRANSACTION_STATUS == 1)
42
             if (context.TRANSACTION_STATUS == 1)
43
             {
43
             {
44
                 string queryResult = _paygateRepo.PaymentQuery(paygateId, payment);
44
                 string queryResult = _paygateRepo.PaymentQuery(paygateId, payment);
45
-                timeshareWeek.StatusId = 22;
45
+                timeshareWeek.StatusId = 1;
46
                 _timeshareRepo.Update(timeshareWeek);
46
                 _timeshareRepo.Update(timeshareWeek);
47
                 return Redirect("http://training.provision-sa.com:122/#/payments/success");
47
                 return Redirect("http://training.provision-sa.com:122/#/payments/success");
48
             }
48
             }
55
             }
55
             }
56
             else
56
             else
57
             {
57
             {
58
+                string queryResult = _paygateRepo.PaymentQuery(paygateId, payment);
59
+                timeshareWeek.StatusId = 32;
60
+                _timeshareRepo.Update(timeshareWeek);
58
                 return Redirect("http://training.provision-sa.com:122/");
61
                 return Redirect("http://training.provision-sa.com:122/");
59
             }
62
             }
60
 
63
 

+ 1
- 1
UnivateProperties_API/Repository/Timeshare/WeekRepository.cs 查看文件

844
             }
844
             }
845
 
845
 
846
 
846
 
847
-            week.StatusId = status.Id;
847
+            week.StatusId = 32;
848
             _dbContext.Add(week);
848
             _dbContext.Add(week);
849
             Save();
849
             Save();
850
 
850
 

正在加载...
取消
保存