# tiandang-all **Repository Path**: 349032805/tiandang-all ## Basic Information - **Project Name**: tiandang-all - **Description**: 甜档微信小程序甜档微信小程序 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-03-06 - **Last Updated**: 2024-05-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 服务端集成: 后台: 1.拦截器 公共: 文件上传 拦截错误,发送邮件 前台: 1.Redis(备用) 2.定时任务 3.获取配置文件信息 4.发送短信验证码 ----------------------------------------------------------------- 运行穿透内网 ./ngrok -config ngrok.cfg -subdomain marketing 8080 http://marketing.tunnel.qydev.com/wechat/portal 商户平台 https://pay.weixin.qq.com/index.php/core/home/login?return_url=%2Findex.php%2Fcore%2Fcert%2Fapi_cert 商户平台登录帐号 fan@1504202811 ---------------------------------------------------------------- 微信https需求: https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_3&index=4 安装https: https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=10_4 ------------------------------------------------------------------ font-awesome: https://9iphp.com/fa-icons https://fontawesome.com/ web安全色 http://www.bootcss.com/p/websafecolors/ 在线工具 http://www.atool.org/ --------------------------------------------------------- 小程序开发者文档 https://developers.weixin.qq.com/miniprogram/dev/api/ 开源项目 https://github.com/xiaobei666/weixin-xiaochengxu666-info 用压测模拟并发 使用简易工具 Apache ab ab -n 100 -c 100 http://www.baidu.com/ ab -t 60 -c 100 http://www.baidu.com/ 内网穿透网站: https://natapp.cn/ 测试用的: ./ngrok -config ngrok.cfg -subdomain marketing 8080 http://marketing.tunnel.qydev.com/wechat/portal ------------------------------------------------------ 需要验证: 2.微信支付 师兄的: https://github.com/Pay-Group/best-pay-sdk Demo地址: https://github.com/Pay-Group/best-pay-demo 视频教程地址: http://v.youku.com/v_show/id_XMjg5MjM4ODIyNA==.html?spm=a2h3j.8428770.3416059.1 https://gitee.com/binary/weixin-java-pay-demo 开源的 1.https的配置 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=10_4 后期可能的优化: 1.redis缓存 (是否必要) -------------------------------------------------------- 日志门面和日志实现 SLF4j Logback private final Logger logger = LoggerFactory.getLogger(Application.class); logger.info("info ...") logger.error("error ...") String name = "imooc"; String password = "123456"; logger.info("name:"+name+"password"+password); logger.info("name: {},password: {}",name,password); logback-spring.xml 区分info和error日志 每天产生一个日志文件 详细参考慕课网springboot微信点餐项目 ---------------------------------------------------------- 微信授权: 获取openID 手工方式;利用第三方SDK 7-1: 官方文档: https://mp.weixin.qq.com/wiki 调试: https://natapp.cn 第三方sdk: https://github.com/Wechat-Group/weixin-java-tools 手工获取opendId小结: 1.设置域名 2.获取code 3.换取access_token 廖师兄自己开发的支付sdk: https://github.com/Pay-Group/best-pay-sdk