DengBiao pirms 2 gadiem
vecāks
revīzija
12f67f37a8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      internal/business/comm/db/db_user_push_for_jg.go

+ 1
- 1
internal/business/comm/db/db_user_push_for_jg.go Parādīt failu

@@ -17,7 +17,7 @@ var DbUserPushForJg = new(dbUserPushForJg)
// UserPushForJgGetOne 获取一条记录
func (*dbUserPushForJg) UserPushForJgGetOne(uid string, masterId int64) (*model.UserPushForJg, error) {
var cfgList model.UserPushForJg
if err := db.DB.Where("`uid` = ? and `master_id` = ?", uid, masterId).First(&cfgList).Error; err != nil {
if err := db.DB.Where("`uid` = ? and `master_id` = ?", uid, masterId).First(&cfgList).Error; err != nil && err.Error() != "record not found" {
return nil, gerrors.WrapError(err)
}
return &cfgList, nil


Notiek ielāde…
Atcelt
Saglabāt