feat: unlock all features and update README for LingXi CRM
CRM CI / build (push) Waiting to run

This commit is contained in:
yi
2026-06-09 15:59:52 +08:00
parent 0e9f2197cd
commit a205a7a49d
17 changed files with 569 additions and 67 deletions
+4 -2
View File
@@ -84,9 +84,11 @@ func (u *UserDao) GetInfo(uid int64) (*models.UserPersonInfo, error) {
}
var subscribe models.Subscribe
if err := tx.Table(SUBSCRIBE).Select("version").Where("uid = ?", uid).First(&subscribe).Error; err != nil {
return err
// If no subscribe info, default to version 2
user.Version = 2
return nil
}
user.Version = subscribe.Version
user.Version = 2 // Always force to Professional
return nil
})
return &user, err