|
@@ -207,7 +207,13 @@ public class AppUserInfoController {
|
|
resultData = ResultData.error(CodeMsg.USER_EXSIST);
|
|
resultData = ResultData.error(CodeMsg.USER_EXSIST);
|
|
}else {
|
|
}else {
|
|
appUserInfoService.AddAppUserInfo(appUserInfo);
|
|
appUserInfoService.AddAppUserInfo(appUserInfo);
|
|
- customerPointsService.insertCustomerPointsInfo(customerPoints);
|
|
|
|
|
|
+ //此处是为初期没使用unionid,以作更新前期用户unionId
|
|
|
|
+ boolean boo = customerPointsService.isExistCustomerPointsInfo(customerPoints);
|
|
|
|
+ if(!boo){
|
|
|
|
+ customerPointsService.insertCustomerPointsInfo(customerPoints);
|
|
|
|
+ }else {
|
|
|
|
+ appUserInfoService.updateUnionId(appUserInfo);
|
|
|
|
+ }
|
|
resultData = ResultData.success(CodeMsg.SUCCESS);
|
|
resultData = ResultData.success(CodeMsg.SUCCESS);
|
|
}
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|