- 修改NotifyNewOrder
This commit is contained in:
@@ -55,7 +55,7 @@ func NotifyNewOrder(order *model.GoodsOrder) (err error) {
|
|||||||
err = SendSMSMsg([]string{store.Tel1, store.Tel2}, "京西菜市", "SMS_173477895", map[string]interface{}{
|
err = SendSMSMsg([]string{store.Tel1, store.Tel2}, "京西菜市", "SMS_173477895", map[string]interface{}{
|
||||||
"daySeq": order.OrderSeq,
|
"daySeq": order.OrderSeq,
|
||||||
"consigneeName": order.ConsigneeName,
|
"consigneeName": order.ConsigneeName,
|
||||||
"payMoney": order.ActualPayPrice,
|
"payMoney": jxutils.IntPrice2StandardString(order.ActualPayPrice),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package smsmsg
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/globals/testinit"
|
"git.rosy.net.cn/jx-callback/globals/testinit"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -12,8 +14,10 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSendSMSMsg(t *testing.T) {
|
func TestSendSMSMsg(t *testing.T) {
|
||||||
err := SendSMSMsg([]string{"18180948107"}, "京西菜市", "SMS_84655036", map[string]interface{}{
|
err := SendSMSMsg([]string{"18180948107"}, "京西菜市", "SMS_173477895", map[string]interface{}{
|
||||||
"code": 123456,
|
"daySeq": 9,
|
||||||
|
"consigneeName": "购买者",
|
||||||
|
"payMoney": jxutils.IntPrice2StandardString(1230),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user