李昊 4 vuotta sitten
vanhempi
commit
2fcb57825e

+ 1 - 1
GxPress/Api/GxPress.Api/AppControllers/AppReportController.cs

@@ -38,7 +38,7 @@ namespace GxPress.Api.AppControllers
         public async Task<IEnumerable<Entity.AppReport>> GetAppReportList()
         {
             var user = await userRepository.GetAsync(_loginContext.AccountId);
-            if (!user.IsReply)
+            if (!user.IsReport)
                 return new List<Entity.AppReport>();
             var result = await _appReportRepository.GetAppReportListAsync();
             var appReportList = result as AppReport[] ?? result.ToArray();

+ 1 - 0
GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -418,6 +418,7 @@ namespace GxPress.Repository.Implement
             if (!string.IsNullOrWhiteSpace(request.Phone))
                 user.Phone = request.Phone;
             user.QRCoder = StringUtils.RemoveDomain(user.QRCoder);
+            user.IsReport = request.IsReport;
             return await UpdateAsync(user);
         }