| | |
| | | import java.util.*; |
| | | import java.util.*; |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import com.ruoyi.utils.forest.RongCloudClient; |
| | | import com.ruoyi.utils.forest.SYClient; |
| | | import com.ruoyi.utils.httpclient.SYCarClient; |
| | | import com.ruoyi.utils.result.Results; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.codec.digest.DigestUtils; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Autowired |
| | | private IArdSyUserService iArdSyUserService; |
| | | |
| | | @Resource |
| | | private SYClient sYClient; |
| | | |
| | | private ArdSyCarController ardSyCarController; |
| | | |
| | |
| | | return error("三一车辆url没有录入"); |
| | | }else{ |
| | | syURL = sysConfigResult.get(0).getConfigValue(); |
| | | Map<String,Object> result = SYCarClient.logIn(syURL,userId, password); |
| | | //Map<String,Object> result = SYCarClient.logIn(syURL,userId, password); |
| | | String passwordMd5 = DigestUtils.md5Hex(password); |
| | | Map<String,Object> result = sYClient.logIn(syURL,passwordMd5,userId); |
| | | return success(result); |
| | | } |
| | | } |