mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-11-04 22:55:16 +08:00
Update smzdm_task.js
This commit is contained in:
@@ -78,6 +78,8 @@ const requestApi = async (url, inputOptions = {}) => {
|
|||||||
options.data = {};
|
options.data = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Object.keys(options.data).forEach(key => options.data[key] === undefined && delete options.data[key]);
|
||||||
|
|
||||||
if (options.sign !== false) {
|
if (options.sign !== false) {
|
||||||
options.data = signFormData(options.data);
|
options.data = signFormData(options.data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user