| @@ -77,7 +77,7 @@ public class WxAppinfo implements Serializable { | |||||
| /*支付ID,参看wx_pay_account**/ | /*支付ID,参看wx_pay_account**/ | ||||
| @io.swagger.annotations.ApiModelProperty(value="支付ID,参看wx_pay_account",name="payId") | @io.swagger.annotations.ApiModelProperty(value="支付ID,参看wx_pay_account",name="payId") | ||||
| private Long payId; | private Long payId; | ||||
| @io.swagger.annotations.ApiModelProperty(value="1B端2C端",name="type") | |||||
| @io.swagger.annotations.ApiModelProperty(value="1-B端 2-C端 3-服务号 4-订阅号",name="type") | |||||
| private Integer type; | private Integer type; | ||||
| @io.swagger.annotations.ApiModelProperty(value="支付ID,参看wx_pay_account_bill",name="payBillId") | @io.swagger.annotations.ApiModelProperty(value="支付ID,参看wx_pay_account_bill",name="payBillId") | ||||
| private Long payBillId; | private Long payBillId; | ||||
| @@ -13,7 +13,7 @@ public class WxWeappInfo extends WxAuthorizerInfo { | |||||
| @io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId") | @io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId") | ||||
| private String tenantId; | private String tenantId; | ||||
| @io.swagger.annotations.ApiModelProperty(value="小程序类型(1-B端 2-C端)",name="type") | |||||
| @io.swagger.annotations.ApiModelProperty(value="小程序类型(1-B端 2-C端 3-服务号 4-订阅号)",name="type") | |||||
| private Integer type; | private Integer type; | ||||
| @io.swagger.annotations.ApiModelProperty(value="小程序名称",name="name") | @io.swagger.annotations.ApiModelProperty(value="小程序名称",name="name") | ||||
| private String name; | private String name; | ||||
| @@ -22,11 +22,10 @@ public class AppAccessTokenSchedule { | |||||
| @Autowired | @Autowired | ||||
| private WxOpenService openService; | private WxOpenService openService; | ||||
| @Scheduled(cron = "0 10 * * * *?") // 每小时更新一次 | |||||
| @Scheduled(cron = "0 0 0/1 * * *?") // 每小时更新一次 | |||||
| //@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 | //@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 | ||||
| public void updateAppAccessToken() { | public void updateAppAccessToken() { | ||||
| // 微信小程序 | // 微信小程序 | ||||
| /* | |||||
| List<WxWeappInfo> weappList = authorizerInfoMapper.findWeappList(); | List<WxWeappInfo> weappList = authorizerInfoMapper.findWeappList(); | ||||
| weappList.stream().forEach(weappInfo -> { | weappList.stream().forEach(weappInfo -> { | ||||
| try { | try { | ||||
| @@ -35,7 +34,6 @@ public class AppAccessTokenSchedule { | |||||
| logger.error(e.getMessage()); | logger.error(e.getMessage()); | ||||
| } | } | ||||
| }); | }); | ||||
| */ | |||||
| // 微信公众号 | // 微信公众号 | ||||
| List<WxWeappInfo> wxmpList = authorizerInfoMapper.findWxMpList(); | List<WxWeappInfo> wxmpList = authorizerInfoMapper.findWxMpList(); | ||||