|
|
@@ -9,12 +9,14 @@ import java.io.OutputStream;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import org.apache.commons.collections4.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.poi.ss.usermodel.Cell;
|
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
|
@@ -80,6 +82,8 @@ public class PublicController extends CertifyApiController {
|
|
|
|
|
|
@Value(value = "${mobileRemindCodeTemplate}")
|
|
|
private String mobileRemindCodeTemplate = null;
|
|
|
+ @Value(value = "${wx.clockInRange}")
|
|
|
+ private String clockInRange;
|
|
|
|
|
|
@Resource
|
|
|
private UserService userService;
|
|
|
@@ -723,6 +727,15 @@ public class PublicController extends CertifyApiController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping("/getWxConfig")
|
|
|
+ public Result getWxConfig() {
|
|
|
+ Result res =new Result();
|
|
|
+ Map<String, Object> config=new HashedMap<String, Object>();
|
|
|
+ config.put("clockInRange", clockInRange);
|
|
|
+ res.data(config);
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|