Browse Source

MOD:fix 状态记录

cxyu 3 years ago
parent
commit
64b9c1db61
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web_module/tornado_api.py

+ 2 - 2
web_module/tornado_api.py

@@ -134,9 +134,9 @@ class create_ad_plan(BaseHandler):
                 sql_session.commit()
                 threading.Thread(target=user_action.carry_plan,
                                  args=(user_id, ad_plan_list, log_ad, db, cookie_canuse, task_name)).start()
-            else:
-                self.write({'status': {'msg': '', "RetCode": 200}})
         except Exception as e:
+            logging.error(str(e))
+
             self.write('eror')
             try:
                 sql_session.commit()