Skip to content

Commit

Permalink
修改借阅者显示
Browse files Browse the repository at this point in the history
  • Loading branch information
renyh committed Jan 8, 2025
1 parent 79e2b47 commit 5a639f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dp2weixin.service/dp2WeiXinService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9916,7 +9916,11 @@ bool containReservationInfo //是否获取借书详情和预约详情
//else
{
//2022/8/5改进,接口返回的信息自然会脱敏,我爱图书馆这边原样显示返回的值即可
strBorrowInfo = "借阅者:" + item.borrower + "<br/>" //"借阅者:***<br/>"
string temp = item.borrower;
if (temp.Length > 10 && temp.Substring(0,3)=="***")
temp = temp.Substring(0, 10) + "..."; // 2025/01/06 是***,且超过10位,截取

strBorrowInfo = "借阅者:" + temp + "<br/>" //2025/01/06 item.borrower //"借阅者:***<br/>"
+ "借阅日期:" + item.borrowDate + "<br/>"
+ "借期:" + item.borrowPeriod + "<br/>"
+ "还书日期:" + item.returningDate;
Expand Down

0 comments on commit 5a639f6

Please sign in to comment.