Commit ac14c43b by dong

fix20221223

parent 6f332410
...@@ -1464,7 +1464,7 @@ def carrier_edit_land(): ...@@ -1464,7 +1464,7 @@ def carrier_edit_land():
detail_address = req_dic['detail_address'] detail_address = req_dic['detail_address']
if not all([district_name, land_name, detail_address]): if not all([district_name, land_name, detail_address]):
return jsonify(code=RET.PARAMERR, msg="区域名称、载体名称、信息地址不能为空!") return jsonify(code=RET.PARAMERR, msg="区域名称、载体名称、信息地址不能为空!")
district_name = get_district(district_name) # district_name = get_district(district_name)
lng, lat, code, msg = get_jwd(detail_address) lng, lat, code, msg = get_jwd(detail_address)
if code == 1: if code == 1:
...@@ -1484,7 +1484,7 @@ def carrier_edit_land(): ...@@ -1484,7 +1484,7 @@ def carrier_edit_land():
carrier_land.fix_people = user_name carrier_land.fix_people = user_name
carrier_land.lng = lng carrier_land.lng = lng
carrier_land.lat = lat carrier_land.lat = lat
db.session.add(carrier_land) # db.session.add(carrier_land)
db.session.commit() db.session.commit()
# 更新es # 更新es
......
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