You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
|
4 years ago
|
package callback
|
||
|
|
|
||
|
|
import (
|
||
|
|
"encoding/json"
|
||
|
|
"encoding/xml"
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
"github.com/flipped-aurora/gin-vue-admin/server/commonus"
|
||
|
|
)
|
||
|
|
|
||
|
|
//更新数据
|
||
|
|
func templateEventPush(eventMsg []byte) {
|
||
|
|
var msgContent TemplateCardPush
|
||
|
|
err := xml.Unmarshal(eventMsg, &msgContent)
|
||
|
|
if nil != err {
|
||
|
|
fmt.Println("***********Unmarshal fail")
|
||
|
|
}
|
||
|
|
fmt.Printf("button======>%v\n", msgContent)
|
||
|
|
|
||
|
|
jsonStr, _ := json.Marshal(msgContent)
|
||
|
|
fmt.Printf("jsonStr======>%v\n", string(jsonStr))
|
||
|
|
|
||
|
|
var updateButtonNotClickable commonus.UpdateButtonNotClickable
|
||
|
|
updateButtonNotClickable.Userids = append(updateButtonNotClickable.Userids, "KaiXinGuo")
|
||
|
|
updateButtonNotClickable.Atall = 0
|
||
|
|
updateButtonNotClickable.Agentid = msgContent.Agentid
|
||
|
|
updateButtonNotClickable.ResponseCode = msgContent.ResponseCode
|
||
|
|
updateButtonNotClickable.Button.ReplaceName = "已提交更新"
|
||
|
|
callbakcMsg, isTrueCall, callBackCont := updateButtonNotClickable.UpdateSendButtonMessage()
|
||
|
|
fmt.Printf("更新销售发送信息返回:%v-----------%v----------->%v\n", string(callbakcMsg), isTrueCall, callBackCont)
|
||
|
|
}
|