Files
order/config/base_setting.py
2019-08-22 12:46:20 +08:00

64 lines
1.0 KiB
Python

# -*- coding: utf-8 -*-
SERVER_PORT = 8999
DEBUG = False
SQLALCHEMY_ECHO = False
AUTH_COOKIE_NAME = "mooc_food"
##过滤url
IGNORE_URLS = [
"^/user/login"
]
IGNORE_CHECK_LOGIN_URLS = [
"^/static",
"^/favicon.ico"
]
API_IGNORE_URLS = [
"^/api"
]
PAGE_SIZE = 50
PAGE_DISPLAY = 10
STATUS_MAPPING = {
"1":"正常",
"0":"已删除"
}
MINA_APP = {
'appid':'wx2c65877d37fc29bf',
'appkey':'f14c867084218e4f736ff136e903699b',
'paykey':'xxxxxxxxxxxxxx换自己的',
'mch_id':'xxxxxxxxxxxx换自己的',
'callback_url':'/api/order/callback'
}
UPLOAD = {
'ext':[ 'jpg','gif','bmp','jpeg','png' ],
'prefix_path':'/web/static/upload/',
'prefix_url':'/static/upload/'
}
APP = {
# 'domain':'http://106.52.204.179:8999'
'domain':'https://python815.cn'
}
PAY_STATUS_MAPPING = {
"1":"已支付",
"-8":"待支付",
"0":"已关闭"
}
PAY_STATUS_DISPLAY_MAPPING = {
"0":"订单关闭",
"1":"支付成功",
"-8":"待支付",
"-7":"待发货",
"-6":"待确认",
"-5":"待评价"
}