python学习

This commit is contained in:
2019-08-06 14:17:42 +08:00
parent 6569d29d7e
commit 54761c6262
52 changed files with 2943 additions and 647 deletions

View File

@@ -7,8 +7,7 @@ AUTH_COOKIE_NAME = "mooc_food"
##过滤url
IGNORE_URLS = [
"^/user/login",
"^/api"
"^/user/login"
]
IGNORE_CHECK_LOGIN_URLS = [
@@ -16,7 +15,9 @@ IGNORE_CHECK_LOGIN_URLS = [
"^/favicon.ico"
]
API_IGNORE_URLS = [
"^/api"
]
PAGE_SIZE = 50
PAGE_DISPLAY = 10
@@ -29,7 +30,7 @@ STATUS_MAPPING = {
MINA_APP = {
'appid':'wx2c65877d37fc29bf',
'appkey':'8c61791794cde415042924a9714542a9',
'appkey':'b670fb4798ec6abf4bab32ae3cf14a61',
'paykey':'xxxxxxxxxxxxxx换自己的',
'mch_id':'xxxxxxxxxxxx换自己的',
'callback_url':'/api/order/callback'
@@ -43,4 +44,20 @@ UPLOAD = {
APP = {
'domain':'http://127.0.0.1:9000'
}
PAY_STATUS_MAPPING = {
"1":"已支付",
"-8":"待支付",
"0":"已关闭"
}
PAY_STATUS_DISPLAY_MAPPING = {
"0":"订单关闭",
"1":"支付成功",
"-8":"待支付",
"-7":"待发货",
"-6":"待确认",
"-5":"待评价"
}