Commit a0768a1a by zhanghj

V1.1.0--提交公众号测试方法---by zhanghj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19851 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 521182c7
......@@ -106,6 +106,7 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/static/**", "anon");
//对外开放api接口
filterChainDefinitionMap.put("/api/**", "anon");
filterChainDefinitionMap.put("/test/**", "anon");
// 退出 logout地址,shiro去清除session
//filterChainDefinitionMap.put("/logout", "logout");
// 不需要拦截的访问
......
......@@ -14,7 +14,7 @@ import com.alibaba.fastjson.JSONObject;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.feign.client.MenuClient;
import com.glsx.common.utils.Page;
import com.glsx.common.utils.PropertiesUtil;
//import com.glsx.common.utils.PropertiesUtil;
import com.glsx.usercenter.constants.ResultCodeEnum;
import com.glsx.usercenter.pojo.Test;
import com.glsx.usercenter.service.TestService;
......@@ -55,7 +55,7 @@ public class TestController extends BaseController{
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result);
}
@RequestMapping(value="/getProperty", method={RequestMethod.GET, RequestMethod.POST})
/*@RequestMapping(value="/getProperty", method={RequestMethod.GET, RequestMethod.POST})
public ResultObject getProperty(String key){
String val = null;
try{
......@@ -64,10 +64,16 @@ public class TestController extends BaseController{
}
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), val);
}
}*/
@RequestMapping(value="/testException")
public ResultObject testException() throws Exception{
throw new Exception();
}
@RequestMapping(value="/getPublicNumberCode", method={RequestMethod.GET})
public ResultObject getPublicNumberCode(String code){
logger.info("code====="+code);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), code);
}
}
......@@ -21,4 +21,39 @@ ALTER TABLE `sys_order`
ADD COLUMN `channel` varchar(64) NULL DEFAULT '' COMMENT '渠道编码';
ALTER TABLE `sys_order`
ADD COLUMN `merchant_name` varchar(255) NULL DEFAULT '' COMMENT '所属商户名称';
\ No newline at end of file
ADD COLUMN `merchant_name` varchar(255) NULL DEFAULT '' COMMENT '所属商户名称';
DROP TABLE IF EXISTS `sys_channel_org`;
CREATE TABLE `sys_channel_org` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`channel` varchar(64) NOT NULL DEFAULT '' COMMENT '渠道编码',
`orgId` int(11) NOT NULL DEFAULT '0' COMMENT '组织根节点id',
`channel_name` varchar(255) DEFAULT '' COMMENT '渠道全称',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`create_by` int(50) DEFAULT '-1' COMMENT '创建人',
`update_by` int(50) DEFAULT '-1' COMMENT '更新人',
PRIMARY KEY (`id`),
UNIQUE KEY `uniq_channel` (`channel`) COMMENT '渠道编码索引',
KEY `idx_orgId` (`orgId`) COMMENT '组织id索引'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='渠道对应根组织';
-- ----------------------------
-- Records of sys_channel_org
-- ----------------------------
INSERT INTO `sys_channel_org` VALUES ('1', 'glsx_edun', '1', 'E盾', '', '2019-04-18 10:44:25', null, '0', null);
CREATE TABLE `sys_order_wechat_msg` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`order_id` int(11) NOT NULL DEFAULT '-1' COMMENT '订单id',
`msg_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '微信消息通知类型,1:订单取消,2:订单完成,3:待处理(服务商端)4,:待处理(技工端),5:接单成功,6:订单超时,7:订单改派',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`create_by` int(11) DEFAULT NULL COMMENT '创建人',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` int(11) DEFAULT NULL COMMENT '更新人',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `idx_order_id` (`order_id`) COMMENT '订单id索引',
KEY `idx_msg_type` (`msg_type`) COMMENT '消息类型'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单微信公众号模板消息推送记录表';
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!