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