新增一系列接口

This commit is contained in:
yan.y
2024-03-29 00:24:07 +08:00
parent 0884384e91
commit c799107d6c
17 changed files with 511 additions and 315 deletions
+4
View File
@@ -35,6 +35,10 @@ func (p DefParty) login() web_iris.Party {
body, _ := io.ReadAll(ctx.Request().Body)
var loginRequest LoginRequest
json.Unmarshal(body, &loginRequest)
if len(loginRequest.Code) == 0 {
ParamError.Fail(ctx, nil)
return
}
//获取code
/*info, err := utils.GetWxUserInfo(loginRequest.Code)
if err != nil {