mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-10 06:16:46 +00:00
Add osvs parameter to update check.
This commit is contained in:
parent
bd81273c6c
commit
28a824e54a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user