Browse Source

修改上新代码逻辑

syh 4 years ago
parent
commit
953c7481c2
1 changed files with 11 additions and 0 deletions
  1. 11 0
      server.py

+ 11 - 0
server.py

@@ -50,5 +50,16 @@ def auto_create_creative_job():
     response_dict["data"] = rest
     return response_dict
 
+@app.route('/autoCreateCreativeJob')
+def auto_create_creative_job():
+    response_dict = ResultDictUtils.common_success_dict
+    account_id = request.args.get("accountId")
+    if 0 == account_id or account_id is None:
+        return ResultDictUtils.params_error_dict
+    rest = aiAutoCreateCreativeJob.auto_create_job(account_id)
+    response_dict["data"] = rest
+    return response_dict
+
+
 if __name__ == '__main__':
     app.run(host='0.0.0.0',port=8079,debug=True)