Commit 0ae53c9e by juan

validacion de telefonos para argentina en sms

1 parent 3a4472ff
...@@ -311,13 +311,13 @@ class SMS(ServiceBase): ...@@ -311,13 +311,13 @@ class SMS(ServiceBase):
if type(text) == bytes: if type(text) == bytes:
text = text.decode("utf-8") text = text.decode("utf-8")
try: try:
#response = requests.get(url = SMS.URL, params = { tel = data[Table.dest]
# "phone" : data[Table.dest], v = ValidacionTelefonosArgentinos()
# "message" : text tel = v.ValidarTelefono(tel)
#}) if tel == False:
#print(data[Table.dest], text, info) print("Error de numero")
#print(stadoSms,text, Table.dest, info["smtp"]["device"], info["smtp"]["sim"],info["smtp"]["email"], info["smtp"]["pass"]) tel = "Error"
Sms.EnviarSMS(stadoSms,text, data[Table.dest], info["smtp"]["device"], info["smtp"]["sim"],info["smtp"]["email"], info["smtp"]["pass"]) Sms.EnviarSMS(stadoSms,text, tel[2:], info["smtp"]["device"], info["smtp"]["sim"],info["smtp"]["email"], info["smtp"]["pass"])
success[file] = True if "OK" == "OK" else False success[file] = True if "OK" == "OK" else False
except: except:
success[file] = False success[file] = False
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!