梁辉侠+林爱玲+王俊++陈南潮+汪柏树



摘 要: 在浙江“五水共治”项目中,民众互动是本项目实施的关键。为促进民众实时、实地参与政府活动,设计并实现了基于微信平台的河流水环境互动系统。使用微信平台开发者模式,引入百度地图API实现GPS投诉定位,并利用Web形式实现实时评论功能,让用户能以多种形式互动参与河流水环境治理活动。与现有其他同类系统相比,该系统具有较强的用户互动性。
关键词: 五水共治; 互动; 微信平台; 地图API
中图分类号:TP399 文献标志码:A 文章编号:1006-8228(2016)12-57-03
Abstract: The public interaction is the key to the implementation of the Zhejiang provincial "five water governance" project. In order to promote the public to participate in government activities in real time and on real spot, an interactive system for river water environment governance based on WeChat public platform is designed and implemented. The system uses WeChat platform developer mode and Baidu maps API to realize the complaint GPS positioning, and uses Web to realize real-time comment function, so that users can, in a variety of forms, interactively participate in the river water environment governance activities. Compared with other existing similar systems, the system has stronger user interactivity.
Key words: five water governance; interaction; WeChat; maps API
0 引言
自“五水共治”项目开展以来,各地政府开通了微信平台为该项目的实施提供支持。目前的微信平台还缺乏互动性和引导性,用户体验差,无法留住用户。本文探讨基于微信平台开发者模式,搭建河流水环境互动系统,实现“五水共治”资源共享共用,以提高广大民众对公益环保项目的支持度,为民众参与政府项目探索新模式,促进社会和谐发展。
1 微信开发模式
微信平台的迅猛发展丰富了移动和网站接入的渠道,个人可通过开发者模式对微信平台进行开发。微信平台的开发者模式为具有开发能力的公众号运营者提供开发接口,可以实现更加个性化的服务[2]。
微信开发技术的基础是掌握消息类型的接收回复。本系统使用SAE新浪云计算平台作为服务器资源,选择PHP+MySQL数据库作为程序运行环境。启用开发者模式后,在新浪云后台对XML代码进行修改可以实现信息回复。微信平台信息交互原理如图1所示,用户发送的信息可以通过微信服务器来与新浪云服务后台进行数据交互[3]。……