From f1d7ee2079f41954f3e04751d268ae3a14d45f16 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 31 Oct 2018 22:40:24 +0800 Subject: [PATCH] - fk. --- business/jxstore/financial/financial.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/business/jxstore/financial/financial.go b/business/jxstore/financial/financial.go index 08b8c4eff..f3eec7100 100644 --- a/business/jxstore/financial/financial.go +++ b/business/jxstore/financial/financial.go @@ -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) } }