原因是:
view文件中的路由路径写错了:
@myrequest.route("/get_showid_info/<ad_type:int>", methods=["GET"])
因为:参数默认类型是string,如果想修改为其它类型,如下
<参数类型:参数>
所以,正确的应该是:
@myrequest.route("/get_showid_info/<int:ad_type>", methods=["GET"])
原因是:
view文件中的路由路径写错了:
@myrequest.route("/get_showid_info/<ad_type:int>", methods=["GET"])
因为:参数默认类型是string,如果想修改为其它类型,如下
<参数类型:参数>
所以,正确的应该是:
@myrequest.route("/get_showid_info/<int:ad_type>", methods=["GET"])