Commit 62b28b21 by rongjun

bug

parent a4657741
...@@ -80,8 +80,9 @@ def cta(timestamp, last_price, task): ...@@ -80,8 +80,9 @@ def cta(timestamp, last_price, task):
TaskNotify.objects.create(task_id=task.get('id'), point=point_val) TaskNotify.objects.create(task_id=task.get('id'), point=point_val)
if over: if over:
Task.remove_task(task) Task.remove_task(task)
print(type(task.get('emails'))) print('send email begin')
send(title, content, task.get('emails')) send(title, content, task.get('emails'))
print('send email end')
except IntegrityError: except IntegrityError:
pass pass
except Exception as e: except Exception as e:
......
...@@ -254,7 +254,7 @@ REST_FRAMEWORK = { ...@@ -254,7 +254,7 @@ REST_FRAMEWORK = {
# ========== # ==========
# = Email = # = Email =
# ========== # ==========
EMAIL_HOST = 'smtp.qq.com' EMAIL_HOST = 'smtp.exmail.qq.com'
EMAIL_PORT = 25 EMAIL_PORT = 25
EMAIL_HOST_USER = 'notify@huxiapp.com' EMAIL_HOST_USER = 'notify@huxiapp.com'
EMAIL_HOST_PASSWORD = 'HuXiJianr3n' EMAIL_HOST_PASSWORD = 'HuXiJianr3n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment