| | |
| | | import com.ks.daylucky.pojo.DO.SponsorSignUpRecord; |
| | | import com.ks.daylucky.pojo.DTO.ConfigKeyEnum; |
| | | import com.ks.daylucky.pojo.VO.AcceptData; |
| | | import com.ks.daylucky.pojo.VO.AlipayXCXShareInfoVO; |
| | | import com.ks.daylucky.service.AdviceService; |
| | | import com.ks.daylucky.service.AppConfigService; |
| | | import com.ks.daylucky.service.SponsorSignUpService; |
| | | import com.ks.daylucky.util.activity.ActivityUtil; |
| | | import net.sf.json.JSONObject; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | AppConfig config = appConfigService.getConfigCache(acceptData.getApp().getId(), key, acceptData.getVersion()); |
| | | data.put(key.name(), config.getValue()); |
| | | } |
| | | |
| | | //获取应用分享图 |
| | | AppConfig config = appConfigService.getConfigCache(acceptData.getApp().getId(), ConfigKeyEnum.shareImageLink, acceptData.getVersion()); |
| | | if (config != null) { |
| | | AlipayXCXShareInfoVO shareInfoDTO = new AlipayXCXShareInfoVO(); |
| | | shareInfoDTO.setPath("/pages/rewards/rewards"); |
| | | shareInfoDTO.setTitle("测试标题"); |
| | | shareInfoDTO.setDesc("测试简介"); |
| | | shareInfoDTO.setBgImgUrl(config.getValue()); |
| | | data.put("shareInfo", shareInfoDTO); |
| | | } |
| | | |
| | | |
| | | return JsonUtil.loadTrueResult(data); |
| | | } |
| | | |