|
@@ -121,8 +121,8 @@ func (c *TemplateMsgSendClient) SendMsg() (sendRes *SendTemplateResponse, err er
|
|
|
// AddUserTemplateRecord 新增模板消息推送记录
|
|
|
func AddUserTemplateRecord(userId, sendStatus, sendType int, openid, sendData, result string) (err error) {
|
|
|
item := &models.UserTemplateRecord{
|
|
|
- UserID: userId,
|
|
|
- OpenID: openid,
|
|
|
+ UserId: userId,
|
|
|
+ OpenId: openid,
|
|
|
SendData: sendData,
|
|
|
Result: result,
|
|
|
CreateDate: time.Now().Format(utils.FormatDate),
|
|
@@ -144,6 +144,8 @@ func SendMultiTemplateMsg(sendData map[string]interface{}, items []*OpenIdList,
|
|
|
}
|
|
|
|
|
|
var WxAppId = `wxb059c872d79b9967` // 研报小程序appid
|
|
|
+ // var WxAppId = `wx9b5d7291e581233a`
|
|
|
+ // var WxAppSecret = `1737c73e9f69a21de1a345b8f0800258`
|
|
|
var wxAppPath string
|
|
|
if utils.RunMode == "debug" {
|
|
|
wxAppPath = fmt.Sprintf("pages-question/answerDetail?id=%d", 3800)
|