Browse Source

抽奖加密修改

sunlupeng 3 months ago
parent
commit
c82f23b656
3 changed files with 5 additions and 3 deletions
  1. 2 1
      public/dailyDrawCarousel.html
  2. 2 1
      public/monthlyDrawCarousel.html
  3. 1 1
      src/utils/request.js

+ 2 - 1
public/dailyDrawCarousel.html

@@ -413,7 +413,8 @@
       // 简单封装ajax
       const httpAjax = (type, url, data) => {
         ajaxHeaders = {
-          "Authorization": state.token
+          "Authorization": state.token,
+          'Content-Type':'application/json'
         }
         return new Promise((resolve, reject) => {
           $.ajax({

+ 2 - 1
public/monthlyDrawCarousel.html

@@ -416,7 +416,8 @@
       // 简单封装ajax
       const httpAjax = (type, url, data) => {
         ajaxHeaders = {
-          "Authorization": state.token
+          "Authorization": state.token,
+          'Content-Type':'application/json'
         }
         return new Promise((resolve, reject) => {
           $.ajax({

+ 1 - 1
src/utils/request.js

@@ -6,7 +6,7 @@ let prodBaseURL = 'https://malltest.dgtis.com/admin';//正式地址
 
 // let prodBaseURL = 'https://malltest.dgtis.com/admin';//阿里云地址
 
-let devBaseURL = 'https://xiaoyou.dgtis.com/admin';//测试地址
+let devBaseURL = 'https://malltest.dgtis.com/admin';//测试地址
 
 // create an axios instance
 const service = axios.create({