|
@@ -69,7 +69,7 @@ public class WxaUserApiController extends WxaController {
|
|
if (doctorsWechatfind == null) {
|
|
if (doctorsWechatfind == null) {
|
|
DoctorsWechat doctorsWechat = new DoctorsWechat();
|
|
DoctorsWechat doctorsWechat = new DoctorsWechat();
|
|
doctorsWechat.setWxaOpenid(apiResult.getStr("openid"));
|
|
doctorsWechat.setWxaOpenid(apiResult.getStr("openid"));
|
|
- if (apiResult.getStr("unionid") != null) {
|
|
|
|
|
|
+ if (!StrKit.isBlank(apiResult.getStr("unionid"))) {
|
|
doctorsWechat.setUnionid(apiResult.getStr("unionid"));
|
|
doctorsWechat.setUnionid(apiResult.getStr("unionid"));
|
|
}
|
|
}
|
|
doctorsWechat.setCreateAt(new Date());
|
|
doctorsWechat.setCreateAt(new Date());
|