| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | @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()); |
| | | } |
| | | } |
| | | |
| | | } |