|
@@ -98,6 +98,9 @@ func Save(context *admin.Context) (interface{}, error) {
|
|
|
log.Println("phone-session2获取失败")
|
|
|
return nil, nil
|
|
|
}
|
|
|
+ if param.PhoneCode == "" {
|
|
|
+ return nil, errors.New("手机验证码不能为空")
|
|
|
+ }
|
|
|
phoneCode := util.ObjToString(session.Values["code"])
|
|
|
// phone := util.ObjToString(session.Values["phone"])
|
|
|
if phoneCode != param.PhoneCode {
|