|
@@ -1,16 +1,14 @@
|
|
package com.nova.service.impl;
|
|
package com.nova.service.impl;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
|
-import com.nova.entry.Config;
|
|
|
|
import com.nova.mapper.lk.LuckActivityConfigMapper;
|
|
import com.nova.mapper.lk.LuckActivityConfigMapper;
|
|
import com.nova.service.LuckActivityConfigService;
|
|
import com.nova.service.LuckActivityConfigService;
|
|
import com.nova.view.result.HttpResult;
|
|
import com.nova.view.result.HttpResult;
|
|
import com.nova.vo.activity.LuckActivityConfigVo;
|
|
import com.nova.vo.activity.LuckActivityConfigVo;
|
|
-import com.qiniu.util.Json;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
public class LuckActivityConfigServiceImpl implements LuckActivityConfigService {
|
|
public class LuckActivityConfigServiceImpl implements LuckActivityConfigService {
|
|
@@ -20,12 +18,12 @@ public class LuckActivityConfigServiceImpl implements LuckActivityConfigService
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public HttpResult getConfig(String activityName) {
|
|
public HttpResult getConfig(String activityName) {
|
|
- if (!StringUtils.isEmpty(activityName)){
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(activityName)) {
|
|
LuckActivityConfigVo luckActivityConfigVo = luckActivityConfigMapper.getConfig(activityName);
|
|
LuckActivityConfigVo luckActivityConfigVo = luckActivityConfigMapper.getConfig(activityName);
|
|
|
|
|
|
-// Config config = JSON.parseObject(luckActivityConfigVo.getConfig(),Config.class);
|
|
|
|
|
|
+
|
|
return HttpResult.success();
|
|
return HttpResult.success();
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
return HttpResult.failed();
|
|
return HttpResult.failed();
|
|
}
|
|
}
|
|
}
|
|
}
|