|
@@ -173,8 +173,8 @@ public class WechatCallbackController {
|
|
|
.last("limit 1"));
|
|
|
|
|
|
if (!miniBindUserList.isEmpty()){
|
|
|
- Custom serviceOne = customService.getOne(new QueryWrapper<Custom>().eq("custom_name", openId));
|
|
|
- if(serviceOne==null) {
|
|
|
+ int count = customService.count(new QueryWrapper<Custom>().eq("custom_name", openId));
|
|
|
+ if(count==0) {
|
|
|
Custom custom = new Custom();
|
|
|
custom.setCustomName(openId);//用户的openId
|
|
|
custom.setIsDelete(0);
|