Преглед изворни кода

fix bug

release_toaliyun_real
xiaohanzi пре 5 година
родитељ
комит
3dbfd5c6fe
3 измењених фајлова са 5 додато и 5 уклоњено
  1. +1
    -1
      mallinkCApi/src/main/java/com/iformall/controller/WxCuserFloatingLayerController.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCuserFloatingLayerService.java
  3. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java

+ 1
- 1
mallinkCApi/src/main/java/com/iformall/controller/WxCuserFloatingLayerController.java Прегледај датотеку

@@ -35,7 +35,7 @@ public class WxCuserFloatingLayerController extends BaseController {
@ApiImplicitParam(name = "openId", value = "openId", dataType = "String", paramType = "query", required = true), @ApiImplicitParam(name = "openId", value = "openId", dataType = "String", paramType = "query", required = true),
@ApiImplicitParam(name = "appId", value = "appId", dataType = "String", paramType = "query", required = true)}) @ApiImplicitParam(name = "appId", value = "appId", dataType = "String", paramType = "query", required = true)})
public ResultData getAppIcon(String openId, String appId) { public ResultData getAppIcon(String openId, String appId) {
WxFloatingLayer wxFloatingLayer = wxCuserFloatingLayerService.getFloatingLayer(openId, appId,getTenantInfo());
WxFloatingLayer wxFloatingLayer = wxCuserFloatingLayerService.getFloatingLayer(openId, appId);
return new ResultData(Result.SUCCESS, "查询成功", wxFloatingLayer); return new ResultData(Result.SUCCESS, "查询成功", wxFloatingLayer);
} }




+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxCuserFloatingLayerService.java Прегледај датотеку

@@ -8,6 +8,6 @@ import com.iformall.domain.po.base.TenantEntity;
*/ */
public interface WxCuserFloatingLayerService { public interface WxCuserFloatingLayerService {


WxFloatingLayer getFloatingLayer(String openId, String appId,TenantEntity tenantinfo);
WxFloatingLayer getFloatingLayer(String openId, String appId);


} }

+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java Прегледај датотеку

@@ -41,15 +41,15 @@ public class WxCuserFloatingLayerServiceImpl implements WxCuserFloatingLayerServ




@Override @Override
public WxFloatingLayer getFloatingLayer(String openId, String appId,TenantEntity tenantinfo) {
public WxFloatingLayer getFloatingLayer(String openId, String appId) {
WxAppinfo appinfo = appinfoMapper.findByAppId(appId);
//1 查看是否存在用户,用户不存在 直接返回浮层信息 //1 查看是否存在用户,用户不存在 直接返回浮层信息
WxCUser user = new WxCUser(); WxCUser user = new WxCUser();
user.setOpenId(openId); user.setOpenId(openId);
user.setAppId(appId); user.setAppId(appId);
user.setTenantId(tenantinfo.getTenantId());
user.updateTenantInfo(appinfo);
WxCUser byOpenId = wxCUserMapper.findByOpenId(user); WxCUser byOpenId = wxCUserMapper.findByOpenId(user);
if (byOpenId == null) { if (byOpenId == null) {
WxAppinfo appinfo = appinfoMapper.findByAppId(appId);
return getWxFloatingLayer(appinfo.getTenantInfo()); return getWxFloatingLayer(appinfo.getTenantInfo());
} }
//2 用户存在 查看是否已有弹出记录 没有 保存记录后返回浮层信息 //2 用户存在 查看是否已有弹出记录 没有 保存记录后返回浮层信息


Loading…
Откажи
Сачувај