|
@@ -149,7 +149,12 @@ public class DistributionSellerController extends BaseController {
|
|
|
{
|
|
{
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
loginBody.setSellerId(loginUser.getUser().getSellerId());
|
|
loginBody.setSellerId(loginUser.getUser().getSellerId());
|
|
|
- wxLoginService.bindWxGzhUnionIdSeller(loginBody);
|
|
|
|
|
|
|
+ if(Validator.isNotEmpty(loginBody.getGzhOpenid())){
|
|
|
|
|
+ wxLoginService.bindWxGzhOpenIdSeller(loginBody);
|
|
|
|
|
+ }
|
|
|
|
|
+ else if(Validator.isNotEmpty(loginBody.getCode())){
|
|
|
|
|
+ wxLoginService.bindWxGzhUnionIdSeller(loginBody);
|
|
|
|
|
+ }
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|
|
|
|
|
|