Commit 37fcb255 by 陈森彬

update

parent 2c73cee1
Showing with 6 additions and 2 deletions
......@@ -425,7 +425,11 @@ def check_price(kw_info):
if res:
return res[0][0].strip()
else:
return False
res = price_num_pattern.findall(kw_info)
if res and "+" not in kw_info:
return res[0].strip()
else:
return False
def check_zh(kw_info):
......
......@@ -222,7 +222,7 @@ class ImHandler(tornado.web.RequestHandler):
kw_word = kw_word.replace(num_res, "")
price_res = check_price(kw_word + " ")
if price_res:
if price_res and data_obj["gn"]:
data_obj["price"] = price_res
if k_res or pcs_res or num_res or price_res:
new_cut_info = new_cut_info.replace(list_info, "")
......
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 sign in to comment