Node.js:微信消息回复、推送的实现
适应场景:Sails框架、微信公众号数据配置在数据库中,支持多个公众号。 1、Model定义(Waterline) 文件路径:/api/models/wx/Wx_config.js /** * Created by root on 10/25/15. */ var moment = require(‘moment’); module.exports = { schema: true, autoCr Continue Reading
适应场景:Sails框架、微信公众号数据配置在数据库中,支持多个公众号。 1、Model定义(Waterline) 文件路径:/api/models/wx/Wx_config.js /** * Created by root on 10/25/15. */ var moment = require(‘moment’); module.exports = { schema: true, autoCr Continue Reading
Html: 姓名状态是否在线操作 用户名 datatables初始化: var datatable; function initDatatable() { datatable = $(‘.datatable’).DataTable({ “processing”: false, “serverSide”: true, “select”: true, “ordering”: true, “langua Continue Reading
1) 打开端口 vi /etc/sysconfig/iptables -A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT 注意:新开放的端口一定要在端口22后面 重启防火墙使配置生效 /etc/init.d/iptables restart 查看开放端口 /etc/init.d/iptables status 1) 永久性生 Continue Reading
Sys_user.js module.exports = { schema: true, autoCreatedAt: false, autoUpdatedAt: false, attributes: { id: { type: ‘integer’, autoIncrement: true, primaryKey: true }, roles: { collection: ‘Sys_role’, Continue Reading
npm install bcrypt –save var salt = bcrypt.genSaltSync(10); var hash = bcrypt.hashSync(‘pass’, salt); console.log(‘加密::’+hash); console.log(‘解密::’+bcry Continue Reading
友情提示:do not 在windows下开发node.js应用,否则你会浪费很多时间并且会pia撞墙的…… 1.CentOS6.5 安装 nodejs 并配置到环境 ———————————– >>gedit /etc/profile expo Continue Reading
pom.xml <!–CXF START–> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-api</artifactId> <version>2.7.15</version> </dependency> & Continue Reading
# yum update # yum search mysql # yum list mysql # yum list mysql-server # yum install mysql # yum install mysql-server 运行命令chkconfig –levels 235 mysqld on使MySQL服务可以自动启动,并使用命令/etc/init.d/mysqld Continue Reading
Home > Manage > Services > List 选择配置的代理名,点击 Transports 进入菜单 Home > Manage > Services > List > Service Dashboard > Transport Management 选中一个协议,比如http 配置 hostname参数 ,设置为ip地址 &nbs Continue Reading
@At public String test5(@Param(“taskId”) String taskId) { Task task = taskService.createTaskQuery().taskId(taskId).singleResult(); if (task == null) return “null”; ProcessDefinitionEntity def = (Proce Continue Reading
通过配置文件实现(这个支持CXF spring注解)点这里 pom.xml <!–CXF START–> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-api</artifactId> <version>2.7.15</ver Continue Reading
首先值得一提的是,taskService.createTaskQuery().taskCandidateOrAssigned(userId) 方法有bug,不会调用重写的工厂类,请使用taskService.createTaskQuery().taskCandidateUser(userId)方法。 CustomGroupEntityManager /** * 分组工厂类 * Created by Continue Reading
下载 activiti-modeler 源码,里面的方法用nutz重写,然后修改editor-app里面页面和js里对应的路径。 5.17.0汉化文件下载:http://pan.baidu.com/s/1qWlzHDE 细节不多述了,自己动手吧,哇哈哈……
@SetupBy(value=StartSetup.class) public class MainModule { } private void activitiInit(NutConfig config) { log.info(“Activiti Init Start…”); ProcessEngineConfigurationImpl processEngineConfiguration Continue Reading
public String getTemplateStr(String template, Map<String, String> para) { StringWriter writer = new StringWriter(); try { RuntimeServices runtimeServices = RuntimeSingleton.getRuntimeServices(); Continue Reading
processEngineConfiguration.setActivityFontName(“宋体”); processEngineConfiguration.setLabelFontName(“宋体”); windows环境变量: JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
刚才给一位顾客剪完发,他对着镜子照了一番,脸上露出一丝笑意:“明天我叫我的兄弟一起过来!” 我很高兴,正要谢他,他却拍了拍我的肩膀:“你也叫点人吧,到时别说我人多欺负你!”