|
@@ -7,7 +7,6 @@ import com.gyee.frame.model.ticket.Labor;
|
|
|
import com.gyee.frame.service.ticket.IbsusersService;
|
|
|
import com.gyee.frame.service.ticket.LaborService;
|
|
|
import com.gyee.frame.service.ticket.ShiroService;
|
|
|
-import com.gyee.frame.util.StringUtils;
|
|
|
import com.gyee.frame.util.ticket.TokenCache;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -34,6 +33,7 @@ public class LoginController {
|
|
|
@DataSource(value = DataSourceType.TICKET)
|
|
|
@PostMapping(value = "sys/vpnlogin")
|
|
|
public AjaxResult vpnLogin(@RequestParam("vpnId") String vpnId){
|
|
|
+ System.out.println("=====sys/vpnlogin:" + vpnId);
|
|
|
Labor labor = laborService.getLaborByVPN(vpnId);
|
|
|
if (labor == null)
|
|
|
return AjaxResult.error(4004, "用户名或密码错误");
|
|
@@ -53,6 +53,7 @@ public class LoginController {
|
|
|
@PostMapping(value = "sys/login")
|
|
|
public AjaxResult login(@RequestParam("username") String username,
|
|
|
@RequestParam("password") String password){
|
|
|
+ System.out.println("=====sys/login:" + username + "—" + password);
|
|
|
Labor labor = laborService.getLabor(username, password);
|
|
|
if (labor == null)
|
|
|
return AjaxResult.error(4004, "用户名或密码错误");
|