avatar of 韭菜联盟 韭菜联盟
fokus pada Pesan pribadi
5
fokus pada
31
Pengikut

[Cara memanggil API FMZ di JS untuk menghentikan robot tertentu dan memulai ulang robot

Dibuat di: 2021-04-06 19:34:48, diperbarui pada: 2021-04-07 13:11:57
comments   1
hits   1019

JS memanggil FMZ API untuk menghentikan robot yang ditentukan dan memulai kembali robot yang ditentukan, StopRobot ((RobotId) atau RestartRobot ((RobotId) bagaimana memodifikasi, method=“StopRobot ((123456) ” tidak berfungsi

function main() {
    var accessKey = ""
    var secretKey = ""
    var method = "GetNodeList"
    
    var d = {
        version: '1.0',
        access_key: accessKey,
        method: method,
        args: "null",
        nonce: (new Date().getTime()).toString()
    }
    
    var m = d.version + "|" + d.method + "|" + d.args + "|" + d.nonce + "|" + secretKey
    d.sign = Hash("md5", "hex", m)
    
    var ret = HttpQuery("https://www.fmz.com/api/v1?access_key=" + accessKey + "&nonce=" + d.nonce + "&args=null&sign=" + d.sign + "&version=1.0&method=" + d.method)
    Log(ret)
}