|
|
@@ -14,7 +14,8 @@ export const myRequest_clockIn = (options) => {
|
|
|
data: options.data || {},
|
|
|
header: options.header || {
|
|
|
'content-type': 'application/x-www-form-urlencoded',
|
|
|
- 'Authorization': uni.getStorageSync("token")
|
|
|
+ 'Authorization': uni.getStorageSync("token"),
|
|
|
+ 'platform': 2
|
|
|
},
|
|
|
success: (res) => {
|
|
|
uni.hideLoading();
|
|
|
@@ -25,7 +26,8 @@ export const myRequest_clockIn = (options) => {
|
|
|
url: 'https://chtech.ncjti.edu.cn/campusclock/attendance/api/home/permissions',
|
|
|
header: {
|
|
|
'content-type': 'application/x-www-form-urlencoded',
|
|
|
- 'Authorization': uni.getStorageSync("token")
|
|
|
+ 'Authorization': uni.getStorageSync("token"),
|
|
|
+ 'platform': 2
|
|
|
},
|
|
|
success: (res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
@@ -60,6 +62,7 @@ export const myRequest_clockIn = (options) => {
|
|
|
showCancel: false,
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
+ uni.removeStorageSync("userInfo")
|
|
|
uni.reLaunch({
|
|
|
url: "/pagesClockIn/index/index",
|
|
|
});
|