yangan
2024-06-26 9166395640600a5ec596bfbeefa00906597f095d
api/request.js
@@ -155,8 +155,7 @@
      let options = {}
      if (opt.data) {
         Object.keys(opt.data).map(key => {
            console.log(111,opt.data[key],opt.data[key] == '' || opt.data[key] == "")
            if(opt.data[key]==0){
            if(opt.data[key]===0){
               opt.data[key] = 0;
            }else if (opt.data[key] == '' || opt.data[key] == "") {
               opt.data[key] = null;
@@ -170,7 +169,6 @@
            return options[key] = opt[key]
         }
      })
      uni.request(options)
         .then(res => interceptorsRes(res, resolve, reject))
         .catch(err => interceptorsErr(err, reject))
@@ -212,7 +210,6 @@
      Object.keys(opt).map(key => {
         if (key !== "params") {
            return options[key] = opt[key]
         }
      })