Commit 71f8b722 authored by 董建华's avatar 董建华

增加异常控制

parent e0293f14
......@@ -68,8 +68,7 @@ public class AppletController {
* @return
*/
@PostMapping("/login")
@Validated
public JsonResult login(@NotNull String appName, @NotNull String openId, String utmSource) {
public JsonResult login(String appName, String openId, String utmSource) {
if (!appNames.contains(appName)) {
throw new DataException("appName不合法");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment