|
@@ -25,6 +25,7 @@ import com.boman.system.api.model.LoginUser;
|
|
|
import com.boman.wechat.utils.WxCodeSessionUtil;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -64,8 +65,14 @@ public class AppletLoginController {
|
|
|
@Resource
|
|
|
private RemoteDeptService remoteDeptService;
|
|
|
|
|
|
+ @Value("${upkeep}")
|
|
|
+ private Boolean upKeep;
|
|
|
+
|
|
|
@PostMapping("/login")
|
|
|
public R<Map<String, Object>> getPhone(@RequestBody AppletLoginForm form) {
|
|
|
+ if (upKeep){
|
|
|
+ throw new BaseException("当前正在维护");
|
|
|
+ }
|
|
|
AppletSessionDTO dto = codeUtil.jscode2Session(form);
|
|
|
String phoneNumber = dto.getPhoneNumber();
|
|
|
if (StringUtils.isBlank(phoneNumber)){
|