From 5331dcd4c5c3352b112dde7ec09511a06f4d0994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 21 Apr 2023 12:41:50 +0800 Subject: [PATCH] 1 --- business/jxcallback/scheduler/defsch/defsch.go | 2 +- business/jxutils/smsmsg/smsmsg_test.go | 10 +++++----- business/model/store.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/business/jxcallback/scheduler/defsch/defsch.go b/business/jxcallback/scheduler/defsch/defsch.go index 388b396bc..d389bb204 100644 --- a/business/jxcallback/scheduler/defsch/defsch.go +++ b/business/jxcallback/scheduler/defsch/defsch.go @@ -650,7 +650,7 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo //针对快送的订单(订单接单后会立马召唤骑手,不会到自动拣货完成) //如果骑手已接单,没有通知过的门店,需要发送通知 if bill.Status == model.WaybillStatusAccepted && order.NotifyType == 0 { - smsmsg.NotifyPickOrder(order) + //smsmsg.NotifyPickOrder(order) } // 订单处于配送状态来的新分配骑手运单 diff --git a/business/jxutils/smsmsg/smsmsg_test.go b/business/jxutils/smsmsg/smsmsg_test.go index 49583a31b..85a005615 100644 --- a/business/jxutils/smsmsg/smsmsg_test.go +++ b/business/jxutils/smsmsg/smsmsg_test.go @@ -17,12 +17,12 @@ func init() { } func TestSendSMSMsg(t *testing.T) { - err := SendVoiceMsg([]string{"18981810340"}, "tts_222871733", map[string]interface{}{ - "tel": "18981810340", - }) - aa := map[string]interface{}{"tel": "13957767601"} + //err := SendVoiceMsg([]string{"18981810340"}, "tts_222871733", map[string]interface{}{ + // "tel": "18981810340", + //}) + aa := map[string]interface{}{"tel": "18981810340"} request := &dyvmsapiclient.SingleCallByTtsRequest{ - CalledNumber: tea.String("13957767601"), + CalledNumber: tea.String("18981810340"), TtsCode: tea.String("tts_222871733"), TtsParam: tea.String(string(utils.MustMarshal(aa))), } diff --git a/business/model/store.go b/business/model/store.go index d7f665eb0..90c634612 100644 --- a/business/model/store.go +++ b/business/model/store.go @@ -325,7 +325,7 @@ type Store struct { AutoEnableAt *time.Time `orm:"type(datetime);null" json:"autoEnableAt"` // 自动营业时间(临时休息用) ChangePriceType int8 `json:"changePriceType"` // 修改价格类型,即是否需要审核 SMSNotify int8 `orm:"column(sms_notify);" json:"smsNotify"` // 是否通过短信接收订单消息(每天只推一条) - SMSNotifyMark int8 `orm:"column(sms_notify_mark);" json:"smsNotifyMark"` //今天是否已经推送过订单消息 + SMSNotifyMark int8 `orm:"column(sms_notify_mark);" json:"smsNotifyMark"` // 今天是否已经推送过订单消息 AutoReplyType int8 `json:"autoReplyType"` // 订单评价自动回复类型 LinkStoreID int `orm:"column(link_store_id);default(0);index" json:"linkStoreID"` // 关联门店ID StoreLevel string `orm:"default(C);size(32)" json:"storeLevel"` // 门店等级(筛选用,京西的)