浏览代码

修改上新代码逻辑

syh 4 年之前
父节点
当前提交
953c7481c2
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      server.py

+ 11 - 0
server.py

@@ -50,5 +50,16 @@ def auto_create_creative_job():
     response_dict["data"] = rest
     response_dict["data"] = rest
     return response_dict
     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__':
 if __name__ == '__main__':
     app.run(host='0.0.0.0',port=8079,debug=True)
     app.run(host='0.0.0.0',port=8079,debug=True)