Merge branch 'master' of https://git.royalpay.com.au/git/royalv2.manage
commit
bb9c239184
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 133 KiB |
Loading…
Reference in new issue