- change SendFilesToStores.title to optional.

This commit is contained in:
gazebo
2019-01-23 19:59:57 +08:00
parent 3a0f47790f
commit 55385ab563
2 changed files with 4 additions and 1 deletions

View File

@@ -303,6 +303,9 @@ func PushJDBadCommentToWeiXin(comment *legacymodel.JxBadComments) (err error) {
func NotifySaleBill(storeID int, title, fileURL string) (err error) {
globals.SugarLogger.Debugf("NotifySaleBill storeID:%d, fileURL:%s", storeID, fileURL)
if title == "" {
title = "当期账单"
}
data := map[string]interface{}{
"first": map[string]interface{}{
"value": "新的账单上传成功!",

View File

@@ -18,7 +18,7 @@ type FinancialController struct {
// @Title 发送文件给门店
// @Description 发送文件给门店调用GET方法得到浏览器端参考的上传HTML实现userfiles
// @Param token header string true "认证token"
// @Param title query string true "消息标题"
// @Param title query string false "消息标题"
// @Param isAsync query bool false "是否异步,缺省是同步"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult