Commit 5094761b by zhangleyuan

feat:调整接口

parent e7fa4a9d
......@@ -22,7 +22,7 @@ class WorkWxAuthorize extends React.Component {
const code = window.getParameterByName('code');
const ticket = window.getParameterByName('ticket');
const storeId = window.getParameterByName('storeId');
Service.hades("/anon/hades/wXWorkUserTicketLogin", {
Service.hades("anon/hades/wXWorkUserTicketLogin", {
appTermEnum: 'XIAOMAI_CLOUD_CLASS_PC_WEB_CUSTOMER',
code,
ticket,
......@@ -43,7 +43,7 @@ class WorkWxAuthorize extends React.Component {
}
workWechatAuthorize = () => {
const params = {}
Service.hades('/anon/hades/getCorpTrainSuiteId',params).then((res)=>{
Service.hades('anon/hades/getCorpTrainSuiteId',params).then((res)=>{
let path = window.location.href;
const htmlUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${res.result}&redirect_uri=${encodeURIComponent(path)}&response_type=code&scope=snsapi_privateinfo&state=STATE#wechat_redirect`
window.location.href = htmlUrl;
......
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