if dev_type == "7PIN_BK_EU":#英文小瑞
url = "http://dmp-global.raisound.com/bz-api/dev/time"
else:
- url = "http://dmp.raisound.com/bz-api/dev/time"
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/time"
response = request.get(url,timeout=5)
data = response.json()
print("dev_NTP:{}".format(data))
if dev_type == "7PIN_BK_EU":#英文小瑞
url = "http://dmp-global.raisound.com/bz-api/dev/auth/active"
else:
- url = "http://dmp.qipai.com.cn:30461/dev/auth/active"
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/auth/active"
# url = "http://dmp-dev.raisound.com/bz-api/dev/auth/active"
data =ujson.dumps(data)
response = None
if dev_type == "7PIN_BK_EU":#英文小瑞
sign_url = "http://dmp-global.raisound.com/bz-api/dev/auth/sign_in" #登入地址
else:
- sign_url = "http://dmp.qipai.com.cn:30461/dev/auth/sign_in" #登入地址
+ sign_url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/auth/sign_in" #登入地址
# sign_url = "http://dmp-dev.raisound.com/bz-api/dev/auth/sign_in" #登入地址
#获取验证码
#url = "http://dmp.qipai.com.cn:30461/dev/device/bind-code/860132066060377"
if dev_type == "7PIN_BK_EU":#英文小瑞
url = "http://dmp-global.raisound.com/bz-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid)
else:
- url = "http://dmp.qipai.com.cn:30461/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid)
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid)
print("{} H:{}".format(url,headers_T))
response = request.post(url,headers = headers_T)
if response.status_code == 200:
dev_tokenip = "http://dmp-global.raisound.com/bz-api/dev/auth/token" #设备新令牌更新地址
else:
dev_tokenip = "http://dmp-dev.raisound.com/bz-api/dev/auth/token" #设备新令牌更新地址
- dev_tokenip = "http://dmp.qipai.com.cn:30461/dev/auth/token" #设备新令牌更新地址
+ dev_tokenip = "https://qipai-dev.dobell.top/qp-dmp-api/dev/auth/token" #设备新令牌更新地址
token = self.dev_token
if token == None:
# if dev_type == "7PIN" or dev_type == "7PIN_coze":#柒牌
# url = "http://ota.qipai.com/bz-cmp-api/api/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion)
# else:
- url = "http://dmp.raisound.com/bz-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion)
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion)
print(url)
response = request.get(url,timeout=5)
# if dev_type == "7PIN" or dev_type == "7PIN_coze":#柒牌
# url = "http://ota.qipai.com/bz-cmp-api/api/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion)
# else:
- url = "http://dmp.raisound.com/bz-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion)
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion)
print(url)
response = request.get(url,timeout=5)
if dev_type == "7PIN" or dev_type == "7PIN_1_5" or dev_type == "7PIN_coze":#柒牌
url = "http://ota.qipai.com/bz-cmp-api/api/result?deviceId={}¤tVersion={}".format(modem.getDevImei(),currentVersion)
else:
- url = "http://dmp.raisound.com/bz-api/ota/result?deviceId={}¤tVersion={}".format(modem.getDevImei(),currentVersion)
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/ota/result?deviceId={}¤tVersion={}".format(modem.getDevImei(),currentVersion)
print(url)
response = request.post(url,timeout=5)
if response.status_code == 200:
if dev_type == "7PIN_BK_EU":#英文小瑞
url = "http://dmp-global.raisound.com/bz-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid)
else:
- url = "http://dmp.raisound.com/bz-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid)
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid)
print("{} H:{}".format(url,headers_T))
response = request.post(url,headers = headers_T,timeout=5)
if response.status_code == 200:
# self.server_ip="118.145.158.207:22082"
# self.server_ip="118.145.158.207:22080/22087"
#self.server_ip="ai.qipai.com"
- self.server_ip="dmp.qipai.com.cn:30746"
+ self.server_ip="115.190.35.37:22082"
#self.server_ip="sevenpin1.qipai.com.cn:22082"
elif dev_type == "G10":
self.server_ip="115.190.94.208:22080"
elif dev_type == "7PIN" or dev_type == "7PIN_1_5" or dev_type == "7PIN_coze":#柒牌
url = "http://ota.qipai.com/bz-cmp-api/api/config/{}".format(modem.getDevImei())
else:
- url = "http://dmp.raisound.com/bz-api/dev/config/{}".format(modem.getDevImei())
+ url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/config/{}".format(modem.getDevImei())
print(url)