Giter VIP home page Giter VIP logo

getreceipt-server's Introduction

getreceipt-server

这个是个人收款的服务端,搭配receiptnotice的安卓端

支持nodeJS与php

nodejs位于nodejs分支,PHP 位于php分支

才刚开始写

安装

在根目录或者子目录有package.json文件时,运行 npm install

配置mongodb的连接url

配置环境变量mongodbfinaninurl 或者直接在model/model.js中指定mongodburl(连接地址 例如mongodb://用户名:密码@地址:端口/数据库名)

配置post解密秘钥

如果客户端启用了des加密,请配置financepostpass变量,该变量为des加密的秘钥

RestFul Api

作用 方式 请求地址 参数或POST data
接收客户端收款推送 POST /bill/getedmoney/ 示例json {"time":"2018-09-20 23:18:00","money":"139.34","title":"微信支付","content":"测试收款","deviceid":"yourdeviceid","encrypt":"0"}
查询当前时间有无收款 GET /bill/querybill/now
查询设备是否在线 GET /device/isonline/deviceid 例如 /device/isonline/mi4c (deviceid为客户端设置里填写的内容)

配置及安全

这个可搭配安卓客户端receiptnotice

receiptnotice

getreceipt-server's People

Contributors

weihuagu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.