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