|
|
@@ -40,8 +40,7 @@ func (*dbUserPushForJg) UserPushForJgInsert(uid, masterId int64, pushAlia string |
|
|
|
|
|
|
|
// UserPushForJgUpdate 修改某条配置信息 |
|
|
|
func (*dbUserPushForJg) UserPushForJgUpdate(uid, masterId int64, pushAlia string) bool { |
|
|
|
cfg := model.UserPushForJg{Uid: uid, PushAlia: pushAlia, MasterId: masterId} |
|
|
|
err := db.DB.Where("`uid` = ? and `master_id` = ?", uid, masterId).Update(&cfg).Error |
|
|
|
err := db.DB.Model(&model.UserPushForJg{}).Where("`uid` = ? and `master_id` = ?", uid, masterId).Update("push_alia", pushAlia).Error |
|
|
|
if err != nil { |
|
|
|
logx.Error(err) |
|
|
|
return false |
|
|
|