- fk.
This commit is contained in:
@@ -67,14 +67,13 @@ func SendFilesToStores(ctx *jxcontext.Context, files []*multipart.FileHeader, is
|
||||
if err == nil {
|
||||
db := dao.GetDB()
|
||||
billRec := &legacymodel.StoreBill{
|
||||
Date: time.Now(),
|
||||
// Url: jxutils.ComposeQiniuResURL(ret.Key),
|
||||
Url: "http://www2.jxc4.com/public/index.php/jd/excel/index?path=" + jxutils.ComposeQiniuResURL(ret.Key),
|
||||
Date: time.Now(),
|
||||
Url: jxutils.ComposeQiniuResURL(ret.Key),
|
||||
StoreId: storeID,
|
||||
BillName: fileHeader.Filename,
|
||||
}
|
||||
if err = dao.CreateEntity(db, billRec); err == nil {
|
||||
err = weixinmsg.NotifySaleBill(storeID, billRec.Url)
|
||||
err = weixinmsg.NotifySaleBill(storeID, "http://www2.jxc4.com/public/index.php/jd/excel/index?path="+billRec.Url)
|
||||
globals.SugarLogger.Debugf("SendFilesToStores NotifySaleBill file:%s error:%v", fileHeader.Filename, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user