package msg_code import ( "hongze/hongze_yb_en_api/global" ) // GetMsgCode 根据token获取信息 func GetMsgCode(mobile, code string) (item *MsgCode, err error) { err = global.MYSQL["rddp"].Where("mobile = ? and code = ? and FROM_UNIXTIME(expired_in)>=NOW() ", mobile, code).First(&item).Error return }