|
@@ -3,9 +3,6 @@ package Wx
|
|
|
import (
|
|
|
"context"
|
|
|
"github.com/suyuan32/simple-admin-core/rpc/types/core"
|
|
|
- "math/rand"
|
|
|
- "strconv"
|
|
|
- "time"
|
|
|
"wechat-api/ent"
|
|
|
"wechat-api/ent/predicate"
|
|
|
"wechat-api/ent/wx"
|
|
@@ -133,10 +130,8 @@ func (l *GetWxListLogic) GetWxList(req *types.WxListReq) (*types.WxListResp, err
|
|
|
}
|
|
|
} else {
|
|
|
if loginStatus != v.Status {
|
|
|
- wxid = strconv.Itoa(rand.New(rand.NewSource(time.Now().UnixNano())).Intn(1000000))
|
|
|
_ = l.svcCtx.DB.Wx.UpdateOneID(v.ID).
|
|
|
SetNotNilStatus(&loginStatus).
|
|
|
- SetWxid(wxid).
|
|
|
Exec(l.ctx)
|
|
|
}
|
|
|
}
|