We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79e2b47 commit 5a639f6Copy full SHA for 5a639f6
dp2weixin.service/dp2WeiXinService.cs
@@ -9916,7 +9916,11 @@ bool containReservationInfo //是否获取借书详情和预约详情
9916
//else
9917
{
9918
//2022/8/5改进,接口返回的信息自然会脱敏,我爱图书馆这边原样显示返回的值即可
9919
- strBorrowInfo = "借阅者:" + item.borrower + "<br/>" //"借阅者:***<br/>"
+ string temp = item.borrower;
9920
+ if (temp.Length > 10 && temp.Substring(0,3)=="***")
9921
+ temp = temp.Substring(0, 10) + "..."; // 2025/01/06 是***,且超过10位,截取
9922
+
9923
+ strBorrowInfo = "借阅者:" + temp + "<br/>" //2025/01/06 item.borrower //"借阅者:***<br/>"
9924
+ "借阅日期:" + item.borrowDate + "<br/>"
9925
+ "借期:" + item.borrowPeriod + "<br/>"
9926
+ "还书日期:" + item.returningDate;
0 commit comments