parent
80f3b16626
commit
e1d1409b28
@ -1,40 +0,0 @@
|
||||
package au.com.royalpay.payment.manage.dev.web;
|
||||
|
||||
import au.com.royalpay.payment.manage.support.wechatclients.KangaLandWechatApiImpl;
|
||||
import au.com.royalpay.payment.manage.support.wechatclients.RedpackWechatApiImpl;
|
||||
import au.com.royalpay.payment.tools.connections.mpsupport.beans.WxOauthType;
|
||||
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
|
||||
import au.com.royalpay.payment.tools.env.RequestEnvironment;
|
||||
import au.com.royalpay.payment.tools.exceptions.ForbiddenException;
|
||||
import au.com.royalpay.payment.tools.permission.wechat.WechatMapping;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Created by davep on 2016-09-04.
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dev/status")
|
||||
public class StatusCheckController {
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
public JSONObject checkSystemStatus(){
|
||||
return new JSONObject();
|
||||
}
|
||||
|
||||
@WechatMapping(value = "wx_test",method = RequestMethod.GET,oauthType = WxOauthType.USERINFO,addonMp = {RedpackWechatApiImpl.class,KangaLandWechatApiImpl.class})
|
||||
public void checkWxTest(){
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/stopping",method = RequestMethod.PUT)
|
||||
public void beforeStop(){
|
||||
if (RequestEnvironment.getClientIp().equals("127.0.0.1")){
|
||||
PlatformEnvironment.getEnv().taskEnabled(false);
|
||||
}else{
|
||||
throw new ForbiddenException();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue