mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 10:38:42 +08:00 
			
		
		
		
	🎨 #1384 小程序体验者接口增加错误码,同时优化WxOpenStorageAutoConfiguration,增加keyPrefix属性
* ✨ 增加自助核销接口 * 🐛 修改接口路径 * ✨ 增加错误码 * ✨ 优化 * ✨ starter config增加keyPrefix * ✨ 修改支付返回结果判断
This commit is contained in:
		| @ -70,7 +70,7 @@ public class WxOpenStorageAutoConfiguration { | |||||||
|     if (jedisPool == null || StringUtils.isNotEmpty(redisHost)) { |     if (jedisPool == null || StringUtils.isNotEmpty(redisHost)) { | ||||||
|       poolToUse = getJedisPool(); |       poolToUse = getJedisPool(); | ||||||
|     } |     } | ||||||
|     WxOpenInRedisConfigStorage config = new WxOpenInRedisConfigStorage(poolToUse); |     WxOpenInRedisConfigStorage config = new WxOpenInRedisConfigStorage(poolToUse, properties.getConfigStorage().getKeyPrefix()); | ||||||
|     config.setWxOpenInfo(properties.getAppId(), properties.getSecret(), properties.getToken(), properties.getAesKey()); |     config.setWxOpenInfo(properties.getAppId(), properties.getSecret(), properties.getToken(), properties.getAesKey()); | ||||||
|     return config; |     return config; | ||||||
|   } |   } | ||||||
| @ -80,7 +80,7 @@ public class WxOpenStorageAutoConfiguration { | |||||||
|     if (redissonClient == null) { |     if (redissonClient == null) { | ||||||
|       redissonClientToUse = getRedissonClient(); |       redissonClientToUse = getRedissonClient(); | ||||||
|     } |     } | ||||||
|     WxOpenInRedissonConfigStorage config = new WxOpenInRedissonConfigStorage(redissonClientToUse); |     WxOpenInRedissonConfigStorage config = new WxOpenInRedissonConfigStorage(redissonClientToUse, properties.getConfigStorage().getKeyPrefix()); | ||||||
|     config.setWxOpenInfo(properties.getAppId(), properties.getSecret(), properties.getToken(), properties.getAesKey()); |     config.setWxOpenInfo(properties.getAppId(), properties.getSecret(), properties.getToken(), properties.getAesKey()); | ||||||
|     return config; |     return config; | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -53,6 +53,8 @@ public class WxOpenProperties { | |||||||
|  |  | ||||||
|     private RedisProperties redis = new RedisProperties(); |     private RedisProperties redis = new RedisProperties(); | ||||||
|  |  | ||||||
|  |     private String keyPrefix; | ||||||
|  |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   public enum StorageType { |   public enum StorageType { | ||||||
|  | |||||||
| @ -452,6 +452,17 @@ public enum WxMaErrorMsgEnum { | |||||||
|   CODE_43101(43101, "用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系"), |   CODE_43101(43101, "用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系"), | ||||||
|  |  | ||||||
|   CODE_47003(47003, "模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错"), |   CODE_47003(47003, "模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错"), | ||||||
|  |  | ||||||
|  |   /** | ||||||
|  |    * 小程序绑定体验者 | ||||||
|  |    */ | ||||||
|  |   CODE_85001(85001, "微信号不存在或微信号设置为不可搜索"), | ||||||
|  |  | ||||||
|  |   CODE_85002(85002, "小程序绑定的体验者数量达到上限"), | ||||||
|  |  | ||||||
|  |   CODE_85003(85003, "微信号绑定的小程序体验者达到上限"), | ||||||
|  |  | ||||||
|  |   CODE_85004(85004, "微信号已经绑定"), | ||||||
|   ; |   ; | ||||||
|  |  | ||||||
|   private int code; |   private int code; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 S
					S