|
@@ -99,7 +99,7 @@ func SendInterviewApplyCancelTemplateMsg(realName, companyName, mobile, articleT
|
|
|
}
|
|
|
|
|
|
//权限申请
|
|
|
-func SendPermissionApplyTemplateMsg(realName, companyName, mobile, openId,applyMethod string) (err error) {
|
|
|
+func SendPermissionApplyTemplateMsg(realName, companyName, mobile, openId, applyMethod string) (err error) {
|
|
|
var msg string
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
@@ -168,6 +168,7 @@ func toSendTemplateMsg(sendUrl string, data []byte) (err error) {
|
|
|
body, _ := ioutil.ReadAll(resp.Body)
|
|
|
var templateResponse SendTemplateResponse
|
|
|
err = json.Unmarshal(body, &templateResponse)
|
|
|
+ utils.FileLog.Info("SendResult %s:", string(body))
|
|
|
if err != nil {
|
|
|
utils.FileLog.Info("SendResult Unmarshal Err:%s", err.Error())
|
|
|
return err
|
|
@@ -180,3 +181,9 @@ type SendTemplateResponse struct {
|
|
|
Errmsg string `json:"errmsg"`
|
|
|
MsgID int `json:"msgid"`
|
|
|
}
|
|
|
+
|
|
|
+func ini123() {
|
|
|
+ fmt.Println("start")
|
|
|
+ SendPermissionApplyTemplateMsg("沈涛", "弘则", "18767183922", "oW3Gts7Ji6Ngv7v2pLeLOFaajfus", "潜在客户申请")
|
|
|
+ fmt.Println("end")
|
|
|
+}
|