Commit fc87edf5 by 黄静

hj

parent 20f0304a
...@@ -47,6 +47,7 @@ def strQ2B(ustring): ...@@ -47,6 +47,7 @@ def strQ2B(ustring):
return rstring return rstring
def moneyTest(mycompanyname): def moneyTest(mycompanyname):
print(mycompanyname,"=======moneyTest函数mycompanynamemycompanyname")
result={} result={}
result["data"]=[] result["data"]=[]
result["total"]=0 result["total"]=0
...@@ -493,10 +494,11 @@ def moneyAPI(server): ...@@ -493,10 +494,11 @@ def moneyAPI(server):
def APImoney(): def APImoney():
try: try:
mycompanyname = request.get_json().get("mycompanyname") # 得到问题 mycompanyname = request.get_json().get("mycompanyname") # 得到问题
print(mycompanyname,"获取公司名称")
r_1 = moneyTest(strQ2B(mycompanyname)) r_1 = moneyTest(strQ2B(mycompanyname))
if r_1: if r_1:
print(r_1,"r_1r_1")
return r_1 return r_1
else: else:
return json.dumps({"status": -1, "msg":"失败","data": 0}, ensure_ascii=False) return json.dumps({"status": -1, "msg":"失败","data": 0}, ensure_ascii=False)
except: except:
......
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