mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-10-20 00:27:40 -05:00
Accept numbers for the hash_method option when generating f parameters
This commit is contained in:
@@ -183,7 +183,7 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
|
||||
await ready;
|
||||
|
||||
let data: {
|
||||
hash_method: '1' | '2';
|
||||
hash_method: '1' | '2' | 1 | 2;
|
||||
token: string;
|
||||
timestamp?: string | number;
|
||||
request_id?: string;
|
||||
@@ -203,6 +203,9 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
|
||||
request_id: data.uuid,
|
||||
};
|
||||
|
||||
if (data && data.hash_method === 1) data.hash_method = '1';
|
||||
if (data && data.hash_method === 2) data.hash_method = '2';
|
||||
|
||||
if (
|
||||
!data ||
|
||||
typeof data !== 'object' ||
|
||||
|
||||
Reference in New Issue
Block a user