浏览代码

Merge branch 'yb_pc2.0' into debug

ziwen 2 年之前
父节点
当前提交
678ad47fac
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      controller/user/user.go

+ 5 - 5
controller/user/user.go

@@ -226,11 +226,11 @@ func Apply(c *gin.Context) {
 		return
 	}
 	userInfo := userService.GetInfoByClaims(c)
-	//openId := userInfo.OpenID
-	//if openId == "" {
-	//	response.Fail("参数异常", c)
-	//	return
-	//}
+	userId := userInfo.UserID
+	if userId == 0 {
+		response.Fail("参数异常", c)
+		return
+	}
 	_, err := userLogic.Apply(int(userInfo.UserID), userInfo.CompanyID, userInfo.Mobile, userInfo.Email, req)
 
 	if err != nil {