From a9877004f436bb9f53173c1692de345726e0e521 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期五, 20 十二月 2024 17:52:52 +0800
Subject: [PATCH] 优化(题干加东西)

---
 assets/js/middleGround/api/job.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/assets/js/middleGround/api/job.js b/assets/js/middleGround/api/job.js
index 5e455cf..97f9df3 100644
--- a/assets/js/middleGround/api/job.js
+++ b/assets/js/middleGround/api/job.js
@@ -14,7 +14,7 @@
   },
 
   newSession(data) {
-    let token = toolClass.getCookie(tokenKey);
+    let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : ''
     return request({
       url: token ? "/job/api/AppUserNewSession" : "/job/api/NewSession",
       method: "post",
@@ -22,7 +22,7 @@
     });
   },
 
-  newJobWithApiNewEvent(data){
+  newJobWithApiNewEvent(data) {
     return request({
       url: "/job/api/NewJobWithApiNewEvent",
       method: "post",

--
Gitblit v1.9.1