val body1=RequestBody.create(MediaType.parse(BaseData.TextPain),userId.toString())
val body2=MultipartBody.Part.createFormData("file",file.name,RequestBody.create(MediaType.parse(BaseData.fileType),file))
DownloadUtil.updateLogo(body1,body2,DownloadImpl(),object :DownloadUtil.DataCallBack{
override fun success(str: Any?) {
val bean =str as RegistBean
ToastUtil.getInstance().make(this@UpdateLogoActivity).show(bean.message)
if (bean.status==200){
SharedPreferencesUtil.refershLogo(bean.data)
this@UpdateLogoActivity.finish()
}
}
override fun fail(str: String?) {
ToastUtil.getInstance().make(this@UpdateLogoActivity).showError(str)
Log.i("===========",str!!)
}
})