Administrator
2025-04-21 a217652d33c75df23202828000d82d0ca8555ac2
src/main/java/com/taoke/autopay/controller/client/UserController.java
@@ -5,6 +5,7 @@
import com.taoke.autopay.service.ClientInfoService;
import com.taoke.autopay.utils.JsonUtil;
import com.taoke.autopay.vo.AcceptData;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -37,4 +38,17 @@
        }
    }
    @ResponseBody
    @RequestMapping("logout")
    public String logout(AcceptData acceptData,Long uid){
        try {
            clientInfoService.logout(uid);
            return JsonUtil.loadTrueResult(new JSONObject());
        } catch (Exception e) {
            e.printStackTrace();
            return JsonUtil.loadFalseResult(1,e.getMessage());
        }
    }
}