1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-09-19 22:33:25 +01:00

Add osvs parameter to update check.

This commit is contained in:
Markus Birth 2017-08-15 15:23:39 +02:00
parent bd81273c6c
commit 28a824e54a

View File

@ -23,9 +23,9 @@ def salt():
return "{0}{1}".format(str(millis), tail) return "{0}{1}".format(str(millis), tail)
def check(sess, serid, curef, fv="AAM481", mode=4, ftype="Firmware", cltp=2010, cktp=2, rtd=1, chnl=2): def check(sess, serid, curef, fv="AAM481", osvs="7.1.1", mode=4, ftype="Firmware", cltp=2010, cktp=2, rtd=1, chnl=2):
geturl = "http://g2master-us-east.tctmobile.com/check.php" geturl = "http://g2master-us-east.tctmobile.com/check.php"
params = {"id": serid, "curef": curef, "fv": fv, "mode": mode, "type": ftype, "cltp": cltp, "cktp": cktp, "rtd": rtd, "chnl": chnl} params = {"id": serid, "curef": curef, "fv": fv, "mode": mode, "type": ftype, "cltp": cltp, "cktp": cktp, "rtd": rtd, "chnl": chnl, "osvs": osvs}
req = sess.get(geturl, params=params) req = sess.get(geturl, params=params)
if req.status_code == 200: if req.status_code == 200:
return(req.text) return(req.text)