From 1f4f6a79e749b89751108c79e069689032eb2e99 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 28 七月 2023 16:28:31 +0800
Subject: [PATCH] 1.删除冗余文件

---
 src/utils/global.js |   34 ----------------------------------
 1 files changed, 0 insertions(+), 34 deletions(-)

diff --git a/src/utils/global.js b/src/utils/global.js
index 4df4457..766ab45 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -1,8 +1,3 @@
-import { NewEncodingRules } from '@/api/systemSettings'
-import { AppTicketSelect } from '@/api/basicInfo'
-import axios from 'axios'
-import Vue from 'vue'
-
 // 鍏ㄥ眬涓昏棰滆壊
 export function getGlobalColor() {
   return { globalColor: `#42b983` }
@@ -62,14 +57,6 @@
   return `${hh}:${mm}`
 }
 
-// 鑾峰彇瑙勫垯鐢熸垚鐨勭紪鐮�
-export async function getNewEncodingRules(encode) {
-  const res = await NewEncodingRules({ rightcode: encode })
-  if (res.code === '200') {
-    return { RightCode: res.data[0], numvalue: res.data[1] }
-  }
-}
-
 // 閫掑綊娓呴櫎鏁扮粍姣忎釜鍏冪礌涓嬬殑children涓虹┖鐨勬暟缁�
 const clearAllChildren = (items, childrenName = 'children') => {
   for (let i = 0; i < items.length; i++) {
@@ -101,25 +88,4 @@
       callback()
     }
   }
-}
-
-// 鑾峰彇token 鐢ㄤ簬璇锋眰鐣呮嵎閫氭帴鍙�
-export async function getTPlusToken() {
-  const r1 = await AppTicketSelect()
-  const r2 = r1.data[0]
-  Vue.prototype.$AppKey = r2.appKey
-  Vue.prototype.$AppSecret = r2.appSecret
-  const data = {
-    appTicket: r2.AppTicket,
-    certificate: r2.certificate
-  }
-  const r3 = await axios.post(Vue.prototype.$chanjetBaseUrl + '/v1/common/auth/selfBuiltApp/generateToken',
-    data, {
-      headers: {
-        'appKey': Vue.prototype.$AppKey,
-        'appSecret': Vue.prototype.$AppSecret,
-        'Content-Type': 'application/json'
-      }
-    })
-  return r3.data.value.accessToken
 }

--
Gitblit v1.9.3