This commit is contained in:
2026-09-23 11:24:25 +08:00
parent 1ed80406ba
commit 68828285e2
16 changed files with 386 additions and 296 deletions
@@ -72,7 +72,6 @@ func (l *WebStoreAddLogic) WebStoreAdd(in *store.WebStoreAddReq) (*store.Respons
return l.fail(utils.SetError(utils.Fail, cErr.GetMsg()))
}
l.Logger.Error(1111111)
groupId, sErr := l.getSaleInfo(adminInfo.ID)
if sErr != utils.Ok {
return l.fail(sErr)
@@ -136,10 +135,14 @@ func (l *WebStoreAddLogic) WebStoreAdd(in *store.WebStoreAddReq) (*store.Respons
}
modelObj.Commit()
Time := utils.Now().String()
md5 := utils.MD5Encrypt(strconv.Itoa(int(data.Id)) + data.Name + Time)
wecomrpc.SendMessage(l.ctx, l.svcCtx.WeComName, wecomrpc.SendMessageJob{
BizId: int(data.Id), // 门店ID
BizType: wecomrpc.BizTypeStore,
Type: wecomrpc.ProductSubmitReview,
Key: md5,
})
modelObj.Commit()
@@ -252,12 +255,3 @@ func (l *WebStoreAddLogic) createUser(info dao.StoreCreate, mobile, password str
return utils.Ok
}
func (l *WebStoreAddLogic) sendMessage() {
// biz_type: 1产品 2门店 3地址 4销售;type: 消息场景;action: 0未用 1通过 2拒绝
wecomrpc.SendMessage(l.ctx, l.svcCtx.WeComName, wecomrpc.SendMessageJob{
BizId: objID, // 门店ID
BizType: wecomrpc.BizTypeStore,
Type: wecomrpc.ProductSubmitReview,
})
}