Commit 1699532f by zhiwj

link

parent e5950373
......@@ -68,8 +68,12 @@ public class LinkController {
}
@RequestMapping("/list-mall-activity")
public RestResponse listMallActivity(Long appletId) {
ServiceResponse<ShopDTO> shopResp = shopApiService.getShopByAppletId(appletId, UserDetailUtils.getUserDetail().getEnterpriseId(), 1);
public RestResponse listMallActivity(String appletId) {
ServiceResponse<AppletsConfigSimpleOutputDTO> appletResp = appletsConfigApiService.selectAppletsConfigIdByAppId(appletId, UserDetailUtils.getUserDetail().getEnterpriseId());
if (!appletResp.isSuccess() || appletResp.getResult() == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "没有对应的小程序");
}
ServiceResponse<ShopDTO> shopResp = shopApiService.getShopByAppletId(appletResp.getResult().getAppletConfigId(), UserDetailUtils.getUserDetail().getEnterpriseId(), 1);
if (!shopResp.isSuccess() || shopResp.getResult() == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "没有对应的店铺");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment