mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +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)
|
||||
|
||||
|
||||
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"
|
||||
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)
|
||||
if req.status_code == 200:
|
||||
return(req.text)
|
||||
|
Loading…
Reference in New Issue
Block a user