...
|
...
|
@@ -6,6 +6,7 @@ import org.apache.commons.collections.CollectionUtils; |
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
...
|
...
|
@@ -26,6 +27,9 @@ public class UserdayPrizeLogController { |
|
|
@Autowired
|
|
|
IUserdayPrizeLogService userdayPrizeLogService;
|
|
|
|
|
|
@Value("${userday.open.day}")
|
|
|
String userdayOpenDay;
|
|
|
|
|
|
/**
|
|
|
* 用户抽奖
|
|
|
* @param uid
|
...
|
...
|
@@ -41,6 +45,12 @@ public class UserdayPrizeLogController { |
|
|
return new ApiResponse(result);
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/isOpenDay")
|
|
|
@ResponseBody
|
|
|
public ApiResponse isOpenDay(){
|
|
|
return new ApiResponse(userdayOpenDay);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询是否抽过奖
|
|
|
* @param uid
|
...
|
...
|
|