|
@@ -145,22 +145,11 @@ func (this *UserAccount) Interested(doType string) {
|
|
|
if !(setValue == -1 || setValue == 1) {
|
|
|
return nil, PARAM_ERROR
|
|
|
}
|
|
|
- updateOk := false
|
|
|
- if positionType == 0 {
|
|
|
- updateOk = util.MQFW.UpdateById("user", userId, map[string]interface{}{
|
|
|
- "$set": map[string]interface{}{
|
|
|
- "i_interested": setValue,
|
|
|
- },
|
|
|
- })
|
|
|
- } else {
|
|
|
- updateOk = util.MQFW.Update("ent_user", map[string]interface{}{
|
|
|
- "i_userid": qutil.IntAll(sessVal["entUserId"]),
|
|
|
- }, map[string]interface{}{
|
|
|
- "$set": map[string]interface{}{
|
|
|
- "i_interested": setValue,
|
|
|
- },
|
|
|
- }, false, false)
|
|
|
- }
|
|
|
+ updateOk := util.Compatible.Update(userId, map[string]interface{}{
|
|
|
+ "$set": map[string]interface{}{
|
|
|
+ "i_interested": setValue,
|
|
|
+ },
|
|
|
+ })
|
|
|
if !updateOk {
|
|
|
return nil, DBUPDATE_ERROR
|
|
|
}
|