|
@@ -1303,8 +1303,8 @@ func (e *EquityCode) InitUserInfo() error {
|
|
}
|
|
}
|
|
xcxPersonId := qu.Int64All((*baseUserRes)[0]["person_id"])
|
|
xcxPersonId := qu.Int64All((*baseUserRes)[0]["person_id"])
|
|
if xcxAccountRes := util.BaseMysql.SelectBySql(`select id from base_service.base_account where person_id=? and type=2 and miniprogram_code is null`, xcxPersonId); xcxAccountRes == nil || len(*xcxAccountRes) == 0 {
|
|
if xcxAccountRes := util.BaseMysql.SelectBySql(`select id from base_service.base_account where person_id=? and type=2 and miniprogram_code is null`, xcxPersonId); xcxAccountRes == nil || len(*xcxAccountRes) == 0 {
|
|
- log.Println("InitUserInfo", e.Phone, "查询小程序公用的账户失败 xcxPersonId:", xcxPersonId)
|
|
|
|
- return errors.New("查询用户信息失败")
|
|
|
|
|
|
+ log.Println("InitUserInfo", e.Phone, "查询小程序公用的账户失败 xcxPersonId:", xcxPersonId) // 说明用户没开通小程序账号
|
|
|
|
+ return nil
|
|
} else {
|
|
} else {
|
|
e.xcxAccountId = qu.IntAll((*xcxAccountRes)[0]["id"])
|
|
e.xcxAccountId = qu.IntAll((*xcxAccountRes)[0]["id"])
|
|
}
|
|
}
|