|
|
@@ -15,6 +15,7 @@ import com.goafanti.common.utils.VerifyCodeUtils;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.user.service.UserService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.apache.shiro.web.util.SavedRequest;
|
|
|
import org.apache.shiro.web.util.WebUtils;
|
|
|
@@ -130,8 +131,8 @@ public class UserLoginController extends BaseController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/mobileSigin", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public Result mobileSignIn(User user, String mobileCode) {
|
|
|
- Result res = new Result();
|
|
|
+ public Result<T> mobileSignIn(User user, String mobileCode) {
|
|
|
+ Result<T> res = new Result<>();
|
|
|
if (StringUtils.isBlank(user.getMobile())) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "必须指定", "手机号"));
|
|
|
return res;
|