This commit is contained in:
邹宗楠
2022-10-24 21:45:35 +08:00
parent 42eda07e55
commit 475044fd4b
2 changed files with 4 additions and 3 deletions

View File

@@ -280,7 +280,9 @@ func AddVendorOrgCode(ctx *jxcontext.Context, vendorOrgCode *model.VendorOrgCode
return err
}
if len(list) > 0 {
return fmt.Errorf("库里有这个账号了,[%v]", vendorOrgCode.VendorOrgCode)
vendorOrgCode.ID = list[0].ID
_, err = dao.UpdateEntity(db, vendorOrgCode, "token", "updated_at", "app_key", "app_secret")
return err
}
var userName string