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.
18 lines
532 B
18 lines
532 B
package wechatopen
|
|
|
|
// MonitorComponentPreAuthCode 第三方平台预授权码 监控
|
|
//func MonitorComponentPreAuthCode(ctx context.Context, c *Client) (string, error) {
|
|
// // 查询
|
|
// preAuthCode := GetComponentPreAuthCode(ctx, c)
|
|
// // 判断
|
|
// if preAuthCode != "" {
|
|
// return preAuthCode, nil
|
|
// }
|
|
// // 重新获取
|
|
// resp, err := c.CgiBinComponentApiCreatePreAuthCoden(ctx)
|
|
// if resp.Result.PreAuthCode == "" {
|
|
// return preAuthCode, err
|
|
// }
|
|
// return SetComponentPreAuthCode(ctx, c, resp.Result.PreAuthCode), err
|
|
//}
|