- add param shopName to SendFilesToStores
This commit is contained in:
@@ -301,11 +301,14 @@ func PushJDBadCommentToWeiXin(comment *legacymodel.JxBadComments) (err error) {
|
||||
return SendMsgToStore(storeID, WX_BAD_COMMENT_PUSH_TEMPLATE_ID, fmt.Sprintf("%s%d", WX_TO_SHOW_COMMENTS_DETAIL_URL, storeID), WX_MINI_TO_SHOW_COMMENTS_DETAIL_URL, data)
|
||||
}
|
||||
|
||||
func NotifySaleBill(storeID int, title, fileURL string) (err error) {
|
||||
func NotifySaleBill(storeID int, title, shopName, fileURL string) (err error) {
|
||||
globals.SugarLogger.Debugf("NotifySaleBill storeID:%d, fileURL:%s", storeID, fileURL)
|
||||
if title == "" {
|
||||
title = "当期账单"
|
||||
}
|
||||
if shopName == "" {
|
||||
shopName = "京西菜市"
|
||||
}
|
||||
data := map[string]interface{}{
|
||||
"first": map[string]interface{}{
|
||||
"value": "新的账单上传成功!",
|
||||
@@ -319,7 +322,7 @@ func NotifySaleBill(storeID int, title, fileURL string) (err error) {
|
||||
"color": "#00008B",
|
||||
},
|
||||
"keyword3": map[string]interface{}{
|
||||
"value": "京西菜市",
|
||||
"value": shopName,
|
||||
},
|
||||
"keyword4": map[string]interface{}{
|
||||
"value": utils.GetCurTimeStr(),
|
||||
|
||||
Reference in New Issue
Block a user