[IMP] Improve ospp_base and ospp_slide modules

enterprise-opentkr-16.0
Oliver Yuan 2023-04-17 19:57:32 +08:00
parent 78a1c42803
commit 9969c573e6
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class ChannelInstance(models.Model):
response = requests.request("POST", url, headers=headers, data=urlencode(payload), verify=False) response = requests.request("POST", url, headers=headers, data=urlencode(payload), verify=False)
rec.message = response.text rec.message = response.text
if response.status_code == 200 and 'error' not in response.text: if response.status_code == 200 and ('error' not in response.text or 'exists' in response.text):
rec.instance_created = True rec.instance_created = True
return True return True