|
@@ -26,16 +26,16 @@ func NewSendBatchMsgTextLogic(ctx context.Context, svcCtx *svc.ServiceContext) *
|
|
|
func (l *SendBatchMsgTextLogic) SendBatchMsgText(req *types.SendMsgReq) (*types.BaseMsgResp, error) {
|
|
|
resp := types.BaseMsgResp{}
|
|
|
|
|
|
- //TODO 这里是发送文本消息
|
|
|
result, err := aliyun.SendChatappMessage(
|
|
|
- "message", "text", "", "zh_CN",
|
|
|
+ "message", "text", "", *req.Lang,
|
|
|
*req.Phone, *req.To, *req.Text)
|
|
|
+ l.Logger.Infof("send chatapp message result=%v\n", result)
|
|
|
|
|
|
if err != nil {
|
|
|
resp.Code = 1
|
|
|
resp.Msg = err.Error()
|
|
|
} else {
|
|
|
- resp.Msg = *result.Body.Message
|
|
|
+ resp.Msg = *result.Body.Code
|
|
|
}
|
|
|
|
|
|
return &resp, nil
|