查看MJYUN WXMP QuickStart的源代码
←
MJYUN WXMP QuickStart
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Prepare Server == * Buy a Aliyun server as the WXMP Server * Buy a domain name, something link www.yourdomain.com * Setup the DNS to make wx.yourdomain.com point to the WXMP Server <br><br> == Setup WXMP Server == === Install Web Server === <pre> $ sudo apt-get install ssh $ sudo apt-get install apache2 $ sudo apt-get install php5 php5-curl </pre> <br><br> === Setup Perl tools === <pre> $ sudo apt-get install perl perl-modules $ sudo apt-get install libdbi-perl libjson-perl libdatetime-perl liblwp-online-perl </pre> <br><br> === Clone the MJYUN WXMP Framework === <pre> $ cd /opt $ git clone git://bitbucket.org:dddmjyun/wxmp.git wxmp </pre> Modify the common/config.php: <pre> <?php define('WXMP_OPENID', 'Your_WXMP_Open_ID'); define('WXMP_TOKEN', 'Your_WXMP_token'); define('WXMP_APPID', "Your_WXMP_appid"); define('WXMP_APPSECRET', "Your_WXMP_appsecret"); define('WXMP_URL', "http://wx.yourdomain.cn"); ?> </pre> <br><br> == WXMP Setup == === 公众号设置 === The "原始ID" is Your_WXMP_Open_ID In "功能设置", Setup the "业务域名" and "JS接口安全域名" with: wx.yourdomain.cn <br><br> === 开发 --> 基本配置 === Get the appid and appsecret in here ;; 服务器配置: <pre> URL: http://wx.yourdomain.cn/robot.php Token(令牌): XXXXXXXXXXXX11111111 <----------------配一个,英文或数字,长度为3-32字符 == Your_WXMP_token EncodingAESKey(消息加解密密钥): XXXXXXXXXXXXXXXXXXXXXX <----------------随机生成 消息加解密方式: 明文模式 </pre> <br><br> === 开发 --> 接口权限 === 网页服务 --> 网页账号 --> 网页授权获取用户基本信息 --> 修改 Setup the 授权回调页面域名: wx.yourdomain.com <br><br> === Disable 自动回复 === <br><br> == Setup the menu of WXMP == Enter the wxmp/tools/mp-menu: <pre> $ sudo cd /opt/wxmp/tools/mp-menu # modify the menu.json and then: $ ./mp-menu.pl # To setup the menu of WXMP </pre> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br>
返回到
MJYUN WXMP QuickStart
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面