合并最新
This commit is contained in:
@@ -82,6 +82,7 @@ namespace BLL
|
||||
{
|
||||
miniprogram_state = "formal";
|
||||
}
|
||||
//miniprogram_state = "developer";
|
||||
string contenttype = "application/json;charset=utf-8";
|
||||
string url = $"https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token={access_token}";
|
||||
var tempData = new
|
||||
@@ -89,7 +90,7 @@ namespace BLL
|
||||
access_token,
|
||||
touser = getUser.OpenId,
|
||||
template_id = Const.WX_TemplateID,
|
||||
page = "pages/index/main",
|
||||
page = "pages/index/index",
|
||||
data = new
|
||||
{
|
||||
thing2 = new { value = thing2 },
|
||||
@@ -100,9 +101,10 @@ namespace BLL
|
||||
miniprogram_state,
|
||||
lang = "zh_CN",
|
||||
};
|
||||
string messages= APIGetHttpService.Http(url, "POST", contenttype, null, JsonConvert.SerializeObject(tempData));
|
||||
string joson = JsonConvert.SerializeObject(tempData);
|
||||
string messages= APIGetHttpService.Http(url, "POST", contenttype, null, joson);
|
||||
//// 记录
|
||||
SaveSysHttpLog(getUser.UserName, url, messages);
|
||||
SaveSysHttpLog(getUser.UserName, url+ "$joson$" + joson , messages);
|
||||
return messages;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user