新增试用 更具设置的试用时间

This commit is contained in:
2025-02-07 15:57:45 +08:00
parent 94958d1c83
commit abdfbe7b00
2 changed files with 28 additions and 4 deletions
+3 -2
View File
@@ -55,12 +55,13 @@ async function GetUserSoftwareControlCollection(tableParams: TableModel.TablePar
return res.data;
}
async function AddSoftwareControlExpirationTime(id: string, days: number, isForever: boolean) {
async function AddSoftwareControlExpirationTime(id: string, days: number, isForever: boolean, isTry = false) {
let res = await request<ApiResponse.SuccessItem<null>>(`/lms/SoftWare/ModifySoftwareControlValidity/${id}`, {
method: 'POST',
data: {
expirationTime: days,
isForever: isForever
isForever: isForever,
isTry: isTry
}
});
if (res.code != 1) {