xingzai hace 1 año
padre
commit
9444c9cd8f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      models/user_record.go

+ 1 - 1
models/user_record.go

@@ -92,7 +92,7 @@ func ModifyUserRecordSessionKey(openId, sessionKey string) (err error) {
 func GetUserRecordByMobile(platform int, bindAccount string) (item *OpenIdList, err error) {
 	var sql string
 	sql = `SELECT union_id,cygx_user_id AS user_id  FROM	cygx_user_record  WHERE	1 = 1  AND cygx_bind_account = ?`
-	err = orm.NewOrm().Raw(sql, platform, bindAccount).QueryRow(&item)
+	err = orm.NewOrm().Raw(sql, bindAccount).QueryRow(&item)
 	return
 }