GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fxlysm/mockserver2: 淘票票、微信、支付宝

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
image
image
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
Wechat.md
Wechat.md
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 

Repository files navigation

测试桩说明

环境配置

mysql:

host:192.168.100.203
post:3306
account:root
password:r00tm1

redis:

host:192.168.100.203
post:6379
password:swimovie

运行

可将配置文件外置并设置相关参数于application-test.properties:

  1. key ----签名
  2. redis ----订单缓存

启动命令

 java -c XX.jar --spring.profiles.active=test 

微信支付

接口

接口 API接口名称 开发情况
/pay/unifiedorder 统一下单 已开发
/pay/refundquery 退款查询 未开发
/pay/closeorder 关闭订单 未开发
/pay/orderquery 订单查询 已开发
/pay/downloadbill 对帐单下载 未开发
/pay/downloadfundflow 下载资金账单 未开发

请求必传

    private  String appid;
    private String mch_id;
    private String out_trade_no;
    private String total_fee;
    private String notify_url;
    private String trade_type;
    private String spbill_create_ip;
    private String body;
    private String openid;

示例: 支付请求:

<xml>
   <appid>wx2421b1c4370ec43b</appid>
   <attach>支付测试</attach>
   <body>JSAPI支付测试</body>
   <mch_id>10000100</mch_id>
   <detail><![CDATA[{ "goods_detail":[ { "goods_id":"iphone6s_16G", "wxpay_goods_id":"1001", "goods_name":"iPhone6s 16G", "quantity":1, "price":528800, "goods_category":"123456", "body":"苹果手机" }, { "goods_id":"iphone6s_32G", "wxpay_goods_id":"1002", "goods_name":"iPhone6s 32G", "quantity":1, "price":608800, "goods_category":"123789", "body":"苹果手机" } ] }]]></detail>
   <nonce_str>1add1a30ac87aa2db72f57a2375d8fec</nonce_str>
   <notify_url>http://localhost:9025/pay/handlerNotify</notify_url>
   <openid>oUpF8uMuAJO_M2pxb1Q9zNjWeS6o</openid>
   <out_trade_no>1415659990</out_trade_no>
   <spbill_create_ip>14.23.150.211</spbill_create_ip>
   <total_fee>1</total_fee>
   <trade_type>JSAPI</trade_type>
   <sign>0CB01533B8C1EF103065174F50BCA001</sign>
</xml>

请求响应:

<xml><appid><![CDATA[wx2421b1c4370ec43b]]></appid>
<code_url><![CDATA[weixin?//wxpay/s/An4baqw]]></code_url>
<mch_id><![CDATA[10000100]]></mch_id>
<nonce_str><![CDATA[atidwlcc]]></nonce_str>
<prepay_id><![CDATA[wx201410272009395522657a690389285100]]></prepay_id>
<return_code><![CDATA[SUCCESS]]></return_code>
<sign><![CDATA[A2D8A0F4D84205285058CEA3D0A1F523]]></sign>
<trade_type><![CDATA[JSAPI]]></trade_type>
</xml>

支付通知:

 <bank_type><![CDATA[CMC]]></bank_type>
 <cash_fee><![CDATA[1]]></cash_fee>
 <mch_id><![CDATA[10000100]]></mch_id>
 <nonce_str><![CDATA[4ooea6h5]]></nonce_str>
 <openid><![CDATA[oUpF8uMuAJO_M2pxb1Q9zNjWeS6o]]></openid>
 <out_trade_no><![CDATA[1415659990]]></out_trade_no>
 <result_code><![CDATA[SUCCESS]]></result_code>
 <return_code><![CDATA[SUCCESS]]></return_code>
 <sign><![CDATA[5ADD48D6144DAE2ECB27F38A9C6A20CB]]></sign>
 <time_end><![CDATA[20180712190500]]></time_end>
 <total_fee><![CDATA[1]]></total_fee>
 <trade_type><![CDATA[JSAPI]]></trade_type>
 <transaction_id><![CDATA[18071219050082462314]]></transaction_id>
 </xml>

淘票票

 接口:$host:$port/router/rest
名称 API接口名称 开发情况
获取城市列表API taobao.film.data.third.party.regions.get 已开发
获取即将上映影片列表API taobao.film.data.third.party.soonshows.get 已开发
获取热映影片列表API taobao.film.data.third.party.hotshows.get 已开发
基于影片获取影评API taobao.film.data.third.party.showcomments.get 未开发
获取影院列表API taobao.film.data.third.party.cinemas.get 已开发
基于影院获取场次信息API taobao.film.data.third.party.schedules.get 已开发
基于场次获取座位图API taobao.film.data.third.party.seat.map 已开发
锁定座位API taobao.film.data.third.party.lock.seat 已开发
解锁座位API taobao.film.data.third.party.unlock.seat 未开发
下单出票API taobao.film.data.third.party.issue.order 已开发

定时同步

基础数据

 mysql 中tpp_cinema_hall【影院】 、tpp_cinema_hall_seat【影厅座位--可代码生成】 为基础数据,修改则影响整个数据

影片同步

 若新增影片生成排期,则在tpp_film.schedules_state 对应字段设置为1

定时创建排期

 可以启动配置中修改定时同步时间

定时创建排期座位

 可以启动配置中修改定时同步时间

请求示例

查询影院列表:

    {
    	"method": "taobao.film.data.third.party.cinemas.get",
        "app_key": "123456",
      	"sign_method": "MD5",
      	"sign":"123456789628562ds",
      	"timestamp": "2015-01-01 12:00:00",
      	"v": "2.0"
    }

返回响应

 {
          "film_data_third_party_regions_get_response": {
         "result": {
             "return_value": {
                 "total_count": 2,
                 "mtop_cinemas": {
                     "mtop_cinema": [
                         {
                             "standard_id": "44014001",
                             "cinema_name": "深圳东海太平洋电影城",
                             "address": "福田区香蜜湖红荔路8099号东海购物广场四楼",
                             "phone": "13800138000",
                             "latitude": "114.02190855446975",
                             "region_name": "福田区",
                             "id": "44014001",
                             "support_third_party_refund": true,
                             "schedule_close_time": "23",
                             "city_id": "701",
                             "longitude": "22.540579931435573"
                         },
                         {
                             "standard_id": "44014001",
                             "cinema_name": "深圳嘉之华中心影城",
                             "address": "深圳市福田区福中一路2016号深圳音乐厅旁首层",
                             "phone": "0755-88688888",
                             "latitude": "114.05766557045412",
                             "region_name": "福田区",
                             "id": "44018101",
                             "support_third_party_refund": true,
                             "schedule_close_time": "23",
                             "city_id": "701",
                             "longitude": "22.546859253958825"
                         }
                     ]
                 }
             },
             "return_message": "success",
             "return_code": "0"
         }
     }
 }

锁座接口请求

  {
  	"method": "taobao.film.data.third.party.lock.seat",
  	"app_key": "123456",
  	"sign_method": "MD5",
  	"sign":"123456789628562ds",
  	"timestamp": "2015-01-01 12:00:00",
  	"v": "2.0",
  	"schedule_id":"201809131814009019",
  	"user_id":"liuyong",
  	"seat_ids":"18091412270045969258|18091412270087002123",
  	"seat_names":"gerwgrw",
  	"mobile":"13538189575",
  	"ext_user_id":"45"
  }

请求响应:

  {
      "film_data_third_party_lock_seat_response": {
          "result": {
              "return_value": {
                  "lock_time": 1537240754672,
                  "apply_key": "5e686e3c-e0ee-4fb7-a3bc-68405c095f3e",
                  "default_lock_second": 900,
                  "status": "LOCK_SUCCESS"
              },
              "return_message": "success",
              "return_code": "0"
          }
      }
  }

出票接口:

 {
 	"method": "taobao.film.data.third.party.issue.order",
 	"app_key": "123456",
 	"sign_method": "MD5",
 	"sign":"123456789628562ds",
 	"timestamp": "2015-01-01 12:00:00",
 	"v": "2.0",
 	"user_id":"liuyong",
 	"total_price":"50000",
 	"ext_order_id":"895464505515600000000001",
 	"ext_user_id":"895464505515600000000001",
 	"lock_seat_apply_key":"f0c7b9d8-b586-4f1f-967b-7396de7fa6a4"
 }

请求响应

 {
     "film_data_third_party_issue_order_response": {
         "return_value": {
             "tb_order_id": "2818091811165666944961",
             "ticket_contents": "取票码:63427910",
             "message": "出票成功",
             "status": "TRADE_SUCCESS"
         },
         "return_message": "success",
         "return_code": "0"
     }
 }

About

淘票票、微信、支付宝

Resources

Readme
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.