aa
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package msghub
|
package msghub
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"git.rosy.net.cn/jx-callback/business/jxstore/permission"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -155,6 +156,10 @@ func GetMsg(ctx *jxcontext.Context, storeID int, lastOrderTime time.Time, lastOr
|
|||||||
globals.SugarLogger.Debugf("GetMsg vendorOrderIDs:%s", utils.Format4Output(vendorOrderIDs, true))
|
globals.SugarLogger.Debugf("GetMsg vendorOrderIDs:%s", utils.Format4Output(vendorOrderIDs, true))
|
||||||
msg.MsgData = len(vendorOrderIDs)
|
msg.MsgData = len(vendorOrderIDs)
|
||||||
}
|
}
|
||||||
|
storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID())
|
||||||
|
if storeMap[storeID] == 0 {
|
||||||
|
msg.MsgData = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return msg, err
|
return msg, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user