新增试用 更具设置的试用时间
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user