| | |
| | | package com.nq.controller.protol; |
| | | |
| | | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.crypto.Mode; |
| | | import cn.hutool.crypto.Padding; |
| | | import com.google.common.collect.Maps; |
| | | import com.nq.common.ServerResponse; |
| | | import com.nq.enums.EStockType; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.servlet.http.HttpSession; |
| | | |
| | | import com.nq.utils.SymmetricCryptoUtil; |
| | | import com.nq.vo.stock.UserStockSubscribeAddIn; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | //一键用户平仓操作 |
| | | @RequestMapping({"allsell.do"}) |
| | | @ResponseBody |
| | | public ServerResponse allsell(@RequestParam("stockType") String positionSn,HttpServletRequest request) { |
| | | public ServerResponse allsell(HttpServletRequest request) { |
| | | try { |
| | | return this.iUserPositionService.allSell(request,positionSn); |
| | | return this.iUserPositionService.allSell(request); |
| | | } catch (Exception e) { |
| | | return ServerResponse.createByErrorMsg("Sell Fail",request); |
| | | } |
| | |
| | | |
| | | @RequestMapping({"auth.do"}) |
| | | @ResponseBody |
| | | public ServerResponse auth(String realName, String idCard,String vaildNumber ,String img1key, String img2key, String img3key, HttpServletRequest request) { |
| | | return this.iUserService.auth(realName, idCard, vaildNumber,img1key, img2key, img3key, request); |
| | | public ServerResponse auth(String realName, String idCard, Integer realType,String vaildNumber ,String img1key, String img2key, String img3key, HttpServletRequest request) { |
| | | return this.iUserService.auth(realName, idCard, realType, vaildNumber,img1key, img2key, img3key, request); |
| | | } |
| | | |
| | | //图片上传 |
| | |
| | | return iApplyLeverServices.applyLever(applyLever,request); |
| | | } |
| | | |
| | | @RequestMapping({"getPassword.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getPassword(HttpServletRequest request) { |
| | | User user = this.iUserService.getCurrentRefreshUser(request); |
| | | if(ObjectUtil.isEmpty(user)){ |
| | | return ServerResponse.createByErrorMsg("获取用信息失败,请重新登录!",request); |
| | | } |
| | | String pwd = SymmetricCryptoUtil.decryptFromString(user.getUserPwd(), Mode.CBC, Padding.ZeroPadding); |
| | | return ServerResponse.createBySuccess(pwd); |
| | | } |
| | | |
| | | /** |
| | | * 充值第三方支付 |
| | | */ |