跳到主要内容

收款方式架构

平台管理端配置

原型

image-20221019180651538

点击编辑

image-20221021155024226

点击微信支付-子应用编辑(独有)

image-20221019180810566

文字描述:

  1. 读取所有的支付方式
  2. 点击编辑、修改支付方式的设置
  3. 微信支付的特殊处理

伪代码

//平台管理
public class ThirdPlatformAdminController {
//平台Service
private ThirdPlatformManager thirdPlatformManager;
//平台appService
private ThirdPlatformAppManager thirdPlatformAppManager;



//读取第三方平台
//入参 type类型
public List<ThirdPlatformDO> getList(String type){
//thirdPlatformManager.getList();
}

//修改平台配置参数
public String edit(Long platformId){
//thirdPlatformManager.edit();
}

//根据平台ID读取app列表
public List<ThirdPlatformAppDO> getList(Long platformId){
//thirdPlatformAppManager.getList()
}

//修改app配置
public String editApp(Long appId){
//thirdPlatformAppManager.edit()
}
}

客户端读取支付方式

APP端 举例:

public class ThirdPlatformBuyerController{

//读取已启用的支付方式
//入参:type
public List<ThirdPlatformDO> getList(String type) {
//select * from es_third_platform where open_flag = 1 type={type}
}
}

微信小程序支付插件读取配置

public class