From 7513caed505efa2be0dfb0dafd168dd5af78f92d Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 13 二月 2025 10:52:32 +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