[Help] Làm thế nào để JS gọi API của FMZ để ngừng chỉ định robot và khởi động lại robot

Tác giả:Liên minh cải xanh, Tạo: 2021-04-06 19:34:48, Cập nhật: 2021-04-07 13:11:57

JS gọi API của FMZ để ngừng chỉ định robot và khởi động lại robot được chỉ định, StopRobot ((RobotId) hoặc RestartRobot ((RobotId) làm thế nào để thay đổi, method="StopRobot ((123456) " không hoạt động

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)
}


Thêm nữa

Cỏ nhỏ https://www.fmz.com/digest-topic/6772