浏览代码

修改签到问题

hejie 3 年之前
父节点
当前提交
2f780b2268
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 4 1
      src/pages/sign/index.vue
  2. 1 1
      src/request/config.js

+ 4 - 1
src/pages/sign/index.vue

@@ -132,7 +132,10 @@ export default {
   },
   methods: {
     loadData() {
-      post("/user/sign").then((res) => {
+      let data = {
+            time:(new Date().getTime() / 1000).toFixed(0)
+        }
+      post("/user/sign",data).then((res) => {
         if (res.code == 0) {
           this.todaySign = res.data.today_sign;
           this.totalSign = res.data.total_sign;

+ 1 - 1
src/request/config.js

@@ -14,6 +14,6 @@ export default apis==1?{
 	Hhost: "https://shop-api.haocha13.cn/v1/",
 	// Hhost: "https://shop.haocha13.cn/",
 }:{
-	Hhost: "http://tea-api.otcpay12.top/v1/",
+	Hhost: "https://test-api.haocha13.cn/v1/",
 	// Hhost: "https://shop.haocha13.cn/",
 }