Commit 882e1f00 by zhangzhen

美团授权功能开发

parent 74494150
......@@ -5,7 +5,7 @@ VUE_APP_TITLE = 凑角管理系统
ENV = 'development'
# 凑角管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = '/prod-api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
......@@ -42,3 +42,17 @@ export function delConsumerCoupon(id) {
method: 'delete'
})
}
export function getAppKey() {
return request({
url: '/common/appKey',
method: 'get'
})
}
export function oauthToken(code) {
return request({
url: `/chessCards/oauthToken?authCode=${code}`,
method: 'get'
})
}
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