|
|
@@ -1,7 +1,7 @@
|
|
|
// 线上地址
|
|
|
-// const BASE_URL = "https://chtech.ncjti.edu.cn/campusclock"
|
|
|
+const BASE_URL = "https://chtech.ncjti.edu.cn/campusclock"
|
|
|
// 本地地址
|
|
|
-const BASE_URL = "https://www.web-server.top"
|
|
|
+// const BASE_URL = "https://www.web-server.top"
|
|
|
export const myRequest_clockIn = (options) => {
|
|
|
uni.showLoading({
|
|
|
title: "加载中",
|
|
|
@@ -22,7 +22,7 @@ export const myRequest_clockIn = (options) => {
|
|
|
if (res.data.code != 200) {
|
|
|
if (res.data.code == 498) {
|
|
|
uni.request({
|
|
|
- url: 'https://www.web-server.top/attendance/api/home/permissions',
|
|
|
+ url: 'https://chtech.ncjti.edu.cn/campusclock/attendance/api/home/permissions',
|
|
|
header: {
|
|
|
'content-type': 'application/x-www-form-urlencoded',
|
|
|
'Authorization': uni.getStorageSync("token")
|