diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index 705fa3332..efb7bb5c0 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -286,7 +286,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string appID := strings.Split(authSecret, ",")[0] if appID == "wx08a5c2a8581414ff" || appID == "wx2d6949f724b2541d" || appID == "wx18111a41fd17f24f" || appID == "wx4b5930c13f8b1170" { //菜市或者果园 if authInfo.AuthBindInfo.UserID != "" { - binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), authInfo.AuthBindInfo.UserID, 0, nil, "", "", []string{"wx2bb99eb5d2c9b82c", "wx4b5930c13f8b1170"}) + binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), authInfo.AuthBindInfo.UserID, 0, nil, "", "", []string{appID}) if err != nil { return authInfo, err } diff --git a/business/jxutils/smsmsg/smsmsg_test.go b/business/jxutils/smsmsg/smsmsg_test.go index 98382eade..49583a31b 100644 --- a/business/jxutils/smsmsg/smsmsg_test.go +++ b/business/jxutils/smsmsg/smsmsg_test.go @@ -1,10 +1,13 @@ package smsmsg import ( + "fmt" + "git.rosy.net.cn/baseapi/utils" + dyvmsapiclient "github.com/alibabacloud-go/dyvmsapi-20170525-2.0.2/client" + "github.com/alibabacloud-go/tea/tea" "testing" - "git.rosy.net.cn/jx-callback/business/jxutils" - + "git.rosy.net.cn/jx-callback/globals/api" "git.rosy.net.cn/jx-callback/globals/testinit" ) @@ -14,11 +17,23 @@ func init() { } func TestSendSMSMsg(t *testing.T) { - err := SendSMSMsg([]string{"18180948107"}, "京西菜市", "SMS_175583150", map[string]interface{}{ - "daySeq": 9, - "consigneeName": "购买者", - "payMoney": jxutils.IntPrice2StandardString(1230), + err := SendVoiceMsg([]string{"18981810340"}, "tts_222871733", map[string]interface{}{ + "tel": "18981810340", }) + aa := map[string]interface{}{"tel": "13957767601"} + request := &dyvmsapiclient.SingleCallByTtsRequest{ + CalledNumber: tea.String("13957767601"), + TtsCode: tea.String("tts_222871733"), + TtsParam: tea.String(string(utils.MustMarshal(aa))), + } + cli, err := api.CreateClientVoice(tea.String("LTAI4FwZN7pp4dACQHoapkZQ"), tea.String("NTegceUFX0FdfMovqCDzqcIKmhcoOu"), "dyvmsapi.aliyuncs.com") + fmt.Println("err1==", err) + res, _err := cli.SingleCallByTts(request) + fmt.Println(_err) + if *res.Body.Code != "OK" { + fmt.Println("errr", err) + } + if err != nil { t.Fatal(err) } diff --git a/business/partner/delivery/mtps/store.go b/business/partner/delivery/mtps/store.go index bf77f0eb6..4badcc97c 100644 --- a/business/partner/delivery/mtps/store.go +++ b/business/partner/delivery/mtps/store.go @@ -10,7 +10,6 @@ import ( "git.rosy.net.cn/jx-callback/business/partner" "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" - "time" ) const ( @@ -121,7 +120,7 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt //}) //shopInfo.ShopLng = 121345878 //shopInfo.ShopLat = 3115628 - _, err = api.MtpsAPI.CheckOrder(shopInfo.ShopID, shopInfo.ShopAddress, int64(shopInfo.ShopLng), int64(shopInfo.ShopLat), time.Now().Unix()) + //_, err = api.MtpsAPI.CheckOrder(shopInfo.ShopID, shopInfo.ShopAddress, int64(shopInfo.ShopLng), int64(shopInfo.ShopLat), time.Now().Unix()) //result, err := api.MtpsAPI.GetStoreStatus(shopInfo.ShopName) //if err == nil { // storeDetail.AuditStatus = mtpsOpenTypeToJx(result.DataList[0].OpenType)