From ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 26 六月 2024 15:02:28 +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