liyiorg / weixin-popular

微信SDK JAVA (公众平台、开放平台、 商户平台、 服务商平台)
Apache License 2.0
2.5k stars 1.06k forks source link

建议User.qr_scene使用Long类型,最近生产环境因为这个字段报错,仔细查了下,Integer并不能兼容临时二维码32位的场景,导致强转报错,望采纳。 #221

Closed hkkFun closed 4 years ago

hkkFun commented 4 years ago

建议User.qr_scene使用Long类型,最近生产环境因为这个字段报错,仔细查了下,Integer并不能兼容临时二维码32位的场景,导致强转报错,望采纳。 image

liyiorg commented 4 years ago

该字段目前暂不做调整,建议生成字符串值类型的临时二维码。

QrcodeAPI.qrcodeCreateTemp(String access_token,int expire_seconds,String scene_str)
liyiorg commented 4 years ago

或者使用不大于Int 最大值创建。

QrcodeAPI.qrcodeCreateTemp(String access_token,int expire_seconds,long scene_id)
hkkFun commented 4 years ago

嗯,现在已经换字符串类型了。