代码拉取完成,页面将自动刷新
普通用户
1. 普通用户登陆小程序,微信授权获取用户信息,地理位置信息
2. 选择维修类型
3. 拍摄故障现场图片
4. 提交订单
维修人员
1. 登陆并授权信息、位置
2. 认证
3. 管理员认证(现直接调用接口进行认证)详见(TestController)
4. 认证成功等待订单(现直接请求接口模拟用户支付)详见(TestController)
5. 接单
6. 拍摄维修图片
7. 完成维修,系统对用户付款进行计算,一定比例会被平台扣除,剩余会加到维修人员账户(提现现未开发)
// 接下来会输入账号密码等信息,账号密码的配置要放在项目的配置文件中
artemis create mybroker
// 启动包含mqtt协议的activemq服务
mybroker/bin/artemis run
server {
access_log logs/access.log;
listen 443;
ssl on;
ssl_certificate /Users/liyang/work/ssl/ca.crt;
ssl_certificate_key /Users/liyang/work/ssl/ca.key;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:50m;
ssl_protocols SSLv3 SSLv2 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
underscores_in_headers on;#开启自定义头信息的下划线
location /wss {
proxy_pass http://127.0.0.1:1883;#代理到上面的地址去
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_redirect off;
#重要配置,解决小程序连接 Sec-WebSocket-Protocol错误提示
proxy_set_header Sec-WebSocket-Protocol mqtt;
# more_clear_headers 'Sec-WebSocket-Protocol';
}
#https协议转发 小程序里面要访问的链接
location /{
proxy_pass http://127.0.0.1:8081;#代理到原有的http的地址去
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Access-Control-Allow-Origin *;#跨域访问设置
}
}
###项目截图
用户端
维修端
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。