2019-07-17 16:36:59 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
SERVER_PORT = 8999
|
|
|
|
|
DEBUG = False
|
2019-07-21 18:20:01 +08:00
|
|
|
SQLALCHEMY_ECHO = False
|
|
|
|
|
|
|
|
|
|
AUTH_COOKIE_NAME = "mooc_food"
|
|
|
|
|
|
|
|
|
|
##过滤url
|
|
|
|
|
IGNORE_URLS = [
|
2019-08-06 14:17:42 +08:00
|
|
|
"^/user/login"
|
2019-07-21 18:20:01 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
IGNORE_CHECK_LOGIN_URLS = [
|
|
|
|
|
"^/static",
|
|
|
|
|
"^/favicon.ico"
|
2019-07-22 17:58:38 +08:00
|
|
|
]
|
2019-08-06 14:17:42 +08:00
|
|
|
API_IGNORE_URLS = [
|
|
|
|
|
"^/api"
|
|
|
|
|
]
|
2019-07-31 17:12:55 +08:00
|
|
|
|
2019-08-06 17:16:39 +08:00
|
|
|
|
2019-07-22 17:58:38 +08:00
|
|
|
PAGE_SIZE = 50
|
2019-07-29 15:28:02 +08:00
|
|
|
PAGE_DISPLAY = 10
|
|
|
|
|
|
|
|
|
|
STATUS_MAPPING = {
|
|
|
|
|
"1":"正常",
|
|
|
|
|
"0":"已删除"
|
2019-07-31 17:12:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MINA_APP = {
|
|
|
|
|
'appid':'wx2c65877d37fc29bf',
|
2019-08-07 10:19:26 +08:00
|
|
|
'appkey':'f14c867084218e4f736ff136e903699b',
|
2019-07-31 17:12:55 +08:00
|
|
|
'paykey':'xxxxxxxxxxxxxx换自己的',
|
|
|
|
|
'mch_id':'xxxxxxxxxxxx换自己的',
|
|
|
|
|
'callback_url':'/api/order/callback'
|
2019-08-02 18:24:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UPLOAD = {
|
|
|
|
|
'ext':[ 'jpg','gif','bmp','jpeg','png' ],
|
|
|
|
|
'prefix_path':'/web/static/upload/',
|
|
|
|
|
'prefix_url':'/static/upload/'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
APP = {
|
2019-08-22 12:40:31 +08:00
|
|
|
# 'domain':'http://106.52.204.179:8999'
|
|
|
|
|
'domain':'https://python815.cn'
|
2019-08-22 12:46:20 +08:00
|
|
|
|
2019-08-06 14:17:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PAY_STATUS_MAPPING = {
|
|
|
|
|
"1":"已支付",
|
|
|
|
|
"-8":"待支付",
|
|
|
|
|
"0":"已关闭"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PAY_STATUS_DISPLAY_MAPPING = {
|
|
|
|
|
"0":"订单关闭",
|
|
|
|
|
"1":"支付成功",
|
|
|
|
|
"-8":"待支付",
|
|
|
|
|
"-7":"待发货",
|
|
|
|
|
"-6":"待确认",
|
|
|
|
|
"-5":"待评价"
|
2019-07-29 15:28:02 +08:00
|
|
|
}
|