From cf3e3ef409f839bc7be56c09c99cee2654d77fa4 Mon Sep 17 00:00:00 2001 From: jazz <jazzxhunter@163.com> Date: 星期四, 07 十二月 2023 17:36:54 +0800 Subject: [PATCH] update_202312071736_项目-治疗室屏幕web-切图接口对接v3 --- src/utils/xio_fn.js | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/utils/xio_fn.js b/src/utils/xio_fn.js index d5d0a9f..8f7d8eb 100644 --- a/src/utils/xio_fn.js +++ b/src/utils/xio_fn.js @@ -41,15 +41,21 @@ * @param {Object} option 璇锋眰瀵硅薄 */ function httpOptionMd5Handle(option) { + // 褰撳墠鏃堕棿鎴� var timestamp = new Date().getTime() var sign, params + // data鍙傛暟瀛楁鎺掑簭锛�26瀛楁瘝A鍒癦鎺掑簭锛� + var newData = {} + Object.keys(option.data).sort().map(key => { + newData[key] = option.data[key] + }) // 鍙傛暟澶勭悊 - params = JSON.stringify(option.data) + params = JSON.stringify(newData) // if (params === '{}') { // params = '' // } // 闈瀖ock妯″紡 - if (option && !ismock) { + if (option) { option.header[`appId`] = APPID option.header[`timestamp`] = timestamp // 绛惧悕澶у啓 -- Gitblit v1.8.0