26 lines
580 B
Go
26 lines
580 B
Go
package user
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
// 验证码
|
|
|
|
func (this *apiComp) VericodeCheck(session comm.IUserSession, req *pb.UserVeriCodeReq) (errdata *pb.ErrorData) {
|
|
return
|
|
}
|
|
|
|
func (this *apiComp) Vericode(session comm.IUserSession, req *pb.UserVeriCodeReq) (errdata *pb.ErrorData) {
|
|
if errdata = this.VericodeCheck(session, req); errdata != nil {
|
|
return
|
|
}
|
|
|
|
rsp := &pb.UserVeriCodeResp{}
|
|
rsp.Code = this.module.modelSetting.refresh(session.GetUserId())
|
|
|
|
session.SendMsg(string(this.module.GetType()), UserSubTypeVeriCode, rsp)
|
|
|
|
return
|
|
}
|