|
@@ -22,7 +22,7 @@ func GetInviteShareCode(mobile string) (inviteShareCode string) {
|
|
|
}
|
|
|
}()
|
|
|
adminDetail, e := models.GetSysAdminByMobile(mobile)
|
|
|
- if e != nil {
|
|
|
+ if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
err = errors.New("GetSysAdminByMobile, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
@@ -58,7 +58,9 @@ func AddCygxUserAdminShareHistory(user *models.WxUserItem, source, sourceTitle,
|
|
|
if inviteShareCode == "" {
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ if user.UserId == 0 {
|
|
|
+ return
|
|
|
+ }
|
|
|
//3秒之内多次请求,不重复记录
|
|
|
key := "CYGX_" + source + "_" + strconv.Itoa(sourceId) + "_" + strconv.Itoa(user.UserId)
|
|
|
if utils.Rc.IsExist(key) {
|