king
2023-07-07 ac4e2892a68bb4ef5b35e8e2e12e76d3ec3ede35
src/views/login/index.jsx
@@ -295,10 +295,42 @@
    })
}
  // handleItem = (list) => {
  //   let param = list.shift()
  //   Object.keys(param).forEach(key => {
  //     if (param[key] === null) {
  //       param[key] = ''
  //     }
  //   })
  //   Api.directRequest({
  //     url: 'http://bms.kresstools.cn/oc/webapi/dostar/zsn_app_bddmsdealersm_add_upt',
  //     method: 'post',
  //     data: JSON.stringify({
  //       func: 'zsn_app_bddmsdealersm_add_upt',
  //       userid: '',
  //       ...param
  //     })
  //   }).then(res => {
  //     if (res.status && list.length > 0) {
  //       this.handleItem(list)
  //     } else {
  //       console.log(list)
  //     }
  //   })
  // }
  componentDidMount () {
    // md5("/ws/location/v1/ip?callback=callbackFunction&key=key&output=jsonp secret key")
    // md5("/ws/location/v1/ip?callback=callbackFunction&key=BA7BZ-4QB65-LFCIA-QPDA6-4G6O7-MJB4Q&output=jsonpuThL4ZM3XOj642ksEQh76tyHFjh4")
    // Api.directRequest({
    //   url: 'http://bms.kresstools.cn/saas-mp-open-api/shop/shopStore/getAllStoreList',
    //   method: 'get'
    // }).then(res => {
    //   if (res && res.code === 0 && res.data && res.data.length > 0) {
    //     this.handleItem(res.data)
    //   }
    // })
    setTimeout(() => {
      Api.delCacheConfig()
    }, 50)