-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open v4.14.7 添加“获取公众号关联的小程序”接口 #2672 感谢 @fuchangqing123
- Loading branch information
Showing
3 changed files
with
132 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/Senparc.Weixin.Open/Senparc.Weixin.Open/Senparc.Weixin.Open.net6.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
...Senparc.Weixin.Open/Senparc.Weixin.Open/WxOpenAPIs/WxaMpLinkGet/WxaMpLinkGetJsonResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
using Senparc.Weixin.Entities; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Senparc.Weixin.Open.WxOpenAPIs | ||
{ | ||
public class WxaMpLinkGetJsonResult : WxJsonResult | ||
{ | ||
public int errcode { get; set; } | ||
public string errmsg { get; set; } | ||
public Wxopens wxopens { get; set; } | ||
} | ||
|
||
public class Wxopens | ||
{ | ||
public Item[] items { get; set; } | ||
} | ||
|
||
public class Item | ||
{ | ||
/// <summary> | ||
/// status:关联状态 | ||
/// <para>1:已关联</para> | ||
/// <para>2:等待小程序管理员确认中</para> | ||
/// <para>3:小程序管理员拒绝关联</para> | ||
/// <para>12:等待公众号管理员确认中</para> | ||
/// </summary> | ||
public int status { get; set; } | ||
/// <summary> | ||
/// 小程序 gh_id | ||
/// </summary> | ||
public string username { get; set; } | ||
/// <summary> | ||
/// 小程序 appid | ||
/// </summary> | ||
public string appid { get; set; } | ||
/// <summary> | ||
/// (官方文档无说明)例:SOURCE_NORMAL | ||
/// </summary> | ||
public string source { get; set; } | ||
/// <summary> | ||
/// 昵称 | ||
/// </summary> | ||
public string nickname { get; set; } | ||
/// <summary> | ||
/// 是否在公众号管理页展示中 | ||
/// </summary> | ||
public int selected { get; set; } | ||
/// <summary> | ||
/// 是否展示在附近的小程序中 | ||
/// </summary> | ||
public int nearby_display_status { get; set; } | ||
/// <summary> | ||
/// 是否已经发布 | ||
/// </summary> | ||
public int released { get; set; } | ||
/// <summary> | ||
/// 头像 url | ||
/// </summary> | ||
public string headimg_url { get; set; } | ||
/// <summary> | ||
/// 微信认证及支付信息 | ||
/// </summary> | ||
public Func_Infos[] func_infos { get; set; } | ||
/// <summary> | ||
/// (官方文档无说明)例:1 | ||
/// </summary> | ||
public int copy_verify_status { get; set; } | ||
/// <summary> | ||
/// 小程序邮箱 | ||
/// </summary> | ||
public string email { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// 微信认证及支付信息 | ||
/// </summary> | ||
public class Func_Infos | ||
{ | ||
/// <summary> | ||
/// 0 表示未开通,1 表示开通 | ||
/// </summary> | ||
public int status { get; set; } | ||
/// <summary> | ||
/// (官方文档无说明)例:1、2 | ||
/// </summary> | ||
public int id { get; set; } | ||
/// <summary> | ||
/// “微信认证”“微信支付”等字符串信息 | ||
/// </summary> | ||
public string name { get; set; } | ||
} | ||
|
||
} |