|
@@ -30,7 +30,7 @@ export default {
|
|
if (!wxtoken) {
|
|
if (!wxtoken) {
|
|
window.location.href = `/wxtoken/auth?test=ocPqjswkUejZHq2ANriNrFFC7A3I&redirect_uri=${window.location.href}`; //学生:省外=>teststud1;省内=>lrf402788946:openid:ocPqjswkUejZHq2ANriNrFFC7A3I 企业:13089419810,testcorp1
|
|
window.location.href = `/wxtoken/auth?test=ocPqjswkUejZHq2ANriNrFFC7A3I&redirect_uri=${window.location.href}`; //学生:省外=>teststud1;省内=>lrf402788946:openid:ocPqjswkUejZHq2ANriNrFFC7A3I 企业:13089419810,testcorp1
|
|
} else {
|
|
} else {
|
|
- let result = await this.corpLogin({ type: `1`, data: { wxtoken: wxtoken } }); //studLogin
|
|
|
|
|
|
+ let result = await this.studLogin({ type: `1`, data: { wxtoken: wxtoken } }); //studLogin
|
|
if (`${result.errcode}` !== '0') {
|
|
if (`${result.errcode}` !== '0') {
|
|
result = await this.corpLogin({ type: `1`, data: { wxtoken: wxtoken } });
|
|
result = await this.corpLogin({ type: `1`, data: { wxtoken: wxtoken } });
|
|
if (`${result.errcode}` !== '0') {
|
|
if (`${result.errcode}` !== '0') {
|