store and chore
CI / changes (push) Successful in 39s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 25s
CI / chore (push) Successful in 24s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 24s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 39s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 25s
CI / chore (push) Successful in 24s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 24s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
This commit is contained in:
@@ -101,48 +101,32 @@ func (l *ApplySvc) getMd5key(key, key2 string) string {
|
||||
}
|
||||
|
||||
func (l *ApplySvc) SetActionApply(uId, objId int, Type uint8, reason string) utils.Status {
|
||||
//data := ApplyData{
|
||||
// Uid: uId,
|
||||
// Id: objId,
|
||||
// Reason: reason,
|
||||
// Status: utils.StatusWaitPass,
|
||||
// Type: Type,
|
||||
//}
|
||||
//key, err := l.run(applyStoreEditKey, &data)
|
||||
//if err == utils.Ok {
|
||||
//TODO 写入日志
|
||||
//add := dao.ActionApplyLogCreate{
|
||||
// AdminId: uId,
|
||||
// ObjId: objId,
|
||||
// Type: Type,
|
||||
// Status: utils.StatusWaitPass,
|
||||
//}
|
||||
//addErr := model.Create(&add)
|
||||
//if addErr != nil {
|
||||
// logx.Error(addErr)
|
||||
// s.DelActionApply(uId, objId)
|
||||
// return utils.SetError(utils.Fail, addErr)
|
||||
//}
|
||||
|
||||
// TODO 调取企业微信发消息 队列类型
|
||||
//qErr := QueueService{}.Create(utils.WecomStream, dao.WeComJob{
|
||||
// ObjId: data.Id,
|
||||
// ObjType: Type,
|
||||
// Type: dao.StoreApplyReview,
|
||||
// Ext: map[string]any{
|
||||
// "reason": reason,
|
||||
// "key": key,
|
||||
// },
|
||||
//})
|
||||
//
|
||||
//if qErr != nil {
|
||||
// utils.Logger.Error(qErr)
|
||||
// return qErr
|
||||
//}
|
||||
|
||||
//return err
|
||||
//}
|
||||
//return err
|
||||
data := ApplyData{
|
||||
Uid: uId,
|
||||
Id: objId,
|
||||
Reason: reason,
|
||||
Status: utils.StatusWaitPass,
|
||||
Type: Type,
|
||||
}
|
||||
key, err := l.run(applyStoreEditKey, &data)
|
||||
if err == utils.Ok {
|
||||
// TODO 调取企业微信发消息 队列类型
|
||||
//qErr := QueueService{}.Create(utils.WecomStream, dao.WeComJob{
|
||||
// ObjId: objId,
|
||||
// ObjType: Type,
|
||||
// Type: dao.StoreApplyReview,
|
||||
// Ext: map[string]any{
|
||||
// "reason": reason,
|
||||
// "key": key,
|
||||
// },
|
||||
//})
|
||||
//
|
||||
//if qErr != nil {
|
||||
// l.Logger.Error(qErr)
|
||||
// return utils.Fail
|
||||
//}
|
||||
}
|
||||
logx.Error(key)
|
||||
|
||||
return utils.Ok
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user