|
|
@@ -111,4 +111,15 @@ public class ForeignController extends BaseController {
|
|
|
return success(userInfo);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取验证码
|
|
|
+ * @param mobile 手机号
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/checkcode")
|
|
|
+ public ModelMap checkCode(String mobile) {
|
|
|
+ String token = getMobileToken(mobile);
|
|
|
+ return success(new ModelMap("token", token));
|
|
|
+ }
|
|
|
+
|
|
|
}
|