Browse Source

上传文件接口调整

Xiao_123 4 tháng trước cách đây
mục cha
commit
aa48274936
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      api/file.js

+ 3 - 1
api/file.js

@@ -21,7 +21,9 @@ export const uploadFile = (file, path) => {
       header: {
         Accept: '*/*',
         'tenant-id': tenantId,
-        'Authorization': 'Bearer ' + uni.getStorageSync('token')
+        'Authorization': 'Bearer ' + uni.getStorageSync('token'),
+        'Accept-Language': 'zh_CN',
+        'terminal': 'mp-weixin'
       },
       success: (uploadFileRes) => {
         let result = JSON.parse(uploadFileRes.data)