This commit is contained in:
@@ -1118,6 +1118,22 @@ const handleDebug = async () => {
|
||||
return
|
||||
}
|
||||
|
||||
// 1.5. 类型转换:将 page_size 和 page_num 从字符串转换为数字
|
||||
if (parsedParams && typeof parsedParams === 'object') {
|
||||
if (parsedParams.page_size !== undefined && typeof parsedParams.page_size === 'string') {
|
||||
const pageSize = parseInt(parsedParams.page_size, 10)
|
||||
if (!isNaN(pageSize)) {
|
||||
parsedParams.page_size = pageSize
|
||||
}
|
||||
}
|
||||
if (parsedParams.page_num !== undefined && typeof parsedParams.page_num === 'string') {
|
||||
const pageNum = parseInt(parsedParams.page_num, 10)
|
||||
if (!isNaN(pageNum)) {
|
||||
parsedParams.page_num = pageNum
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 2. 加密参数
|
||||
const encryptedParams = await encryptWithAES(parsedParams, debugForm.secretKey)
|
||||
if (!encryptedParams) {
|
||||
|
||||
Reference in New Issue
Block a user