Commit 10eaf7d3 by 魏强

新增对账权限;

parent 60fb07a6
...@@ -57,7 +57,7 @@ def index(): ...@@ -57,7 +57,7 @@ def index():
admin_week['spot_info'] = AgentService.get_spot_info(cur_user) admin_week['spot_info'] = AgentService.get_spot_info(cur_user)
return jsonify(BASE_RESPONSE(data=admin_week).to_dict()) return jsonify(BASE_RESPONSE(data=admin_week).to_dict())
elif cur_user.level == 2: elif cur_user.level == 2 or cur_user.level == 4:
return jsonify(OPERATE_LEVEL_ERROR) return jsonify(OPERATE_LEVEL_ERROR)
else: else:
return jsonify(OPERATE_ERROR) return jsonify(OPERATE_ERROR)
...@@ -99,7 +99,7 @@ def index(): ...@@ -99,7 +99,7 @@ def index():
admin_month['spot_info'] = AgentService.get_spot_info(cur_user) admin_month['spot_info'] = AgentService.get_spot_info(cur_user)
return jsonify(BASE_RESPONSE(data=admin_month).to_dict()) return jsonify(BASE_RESPONSE(data=admin_month).to_dict())
elif cur_user.level == 2: elif cur_user.level == 2 or cur_user.level == 4:
return jsonify(OPERATE_LEVEL_ERROR) return jsonify(OPERATE_LEVEL_ERROR)
else: else:
return jsonify(OPERATE_ERROR) return jsonify(OPERATE_ERROR)
...@@ -119,7 +119,7 @@ def index(): ...@@ -119,7 +119,7 @@ def index():
admin_history['history_invalid_money'] = invalid_money_history admin_history['history_invalid_money'] = invalid_money_history
admin_history['spot_info'] = AgentService.get_spot_info(cur_user) admin_history['spot_info'] = AgentService.get_spot_info(cur_user)
return jsonify(BASE_RESPONSE(data=admin_history).to_dict()) return jsonify(BASE_RESPONSE(data=admin_history).to_dict())
elif cur_user.level == 2: elif cur_user.level == 2 or cur_user.level == 4:
agent_history = {} agent_history = {}
start_time_week, end_time_week = Helper.getWeekDate() start_time_week, end_time_week = Helper.getWeekDate()
start_time_lastweek, end_time_lastweek = Helper.getLastWeekDate() start_time_lastweek, end_time_lastweek = Helper.getLastWeekDate()
...@@ -186,7 +186,7 @@ def index(): ...@@ -186,7 +186,7 @@ def index():
admin_today['spot_info'] = AgentService.get_spot_info(cur_user) admin_today['spot_info'] = AgentService.get_spot_info(cur_user)
return jsonify(BASE_RESPONSE(data=admin_today).to_dict()) return jsonify(BASE_RESPONSE(data=admin_today).to_dict())
elif cur_user.level == 2: elif cur_user.level == 2 or cur_user.level == 4:
# 代理商 # 代理商
agent_today = {} agent_today = {}
agent_today['today_income'] = today_income agent_today['today_income'] = today_income
......
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