11
This commit is contained in:
1 parent
258cd7a0a3
commit
7d6a670ad5
3 files changed
+2
-52
No files matched your search
-52
@@ -1,52 +0,0 @@
|
||||
package com.bsd.pjcloud.thirdparty.vo.appplus.pay.wechat;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* JSAPI/小程序下单
|
||||
*/
|
||||
@Data
|
||||
public class ThirdMiniJsapiPayVo {
|
||||
|
||||
public static final String SUCCESS = "SUCCESS";
|
||||
|
||||
private String return_code;
|
||||
|
||||
private String return_msg;
|
||||
|
||||
private String appid;
|
||||
|
||||
private String mch_id;
|
||||
|
||||
private String device_info;
|
||||
|
||||
private String nonce_str;
|
||||
|
||||
private String sign;
|
||||
|
||||
private String result_code;
|
||||
|
||||
private String err_code;
|
||||
|
||||
private String err_code_des;
|
||||
|
||||
private String trade_type;
|
||||
|
||||
private String prepay_id;
|
||||
|
||||
private String code_url;
|
||||
|
||||
private HashMap<String, Object> appPayParams;
|
||||
|
||||
public boolean isHttpSucess() {
|
||||
return ObjectUtil.equals(ThirdMiniWechatQueryVo.SUCCESS, return_code);
|
||||
}
|
||||
|
||||
public boolean isPaySucess() {
|
||||
return ObjectUtil.equals(ThirdMiniWechatQueryVo.SUCCESS, result_code);
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -47,6 +47,7 @@ public class MchPaySettingController {
|
||||
@Operation(summary = "用户可以支付的方式(目前微信、支付宝)", description = "用户可以支付的方式(目前微信、支付宝)")
|
||||
@GetMapping("/app/pay-type-list")
|
||||
public R<List<MchPaySettingVo>> getUserPaySettingList() {
|
||||
System.out.println("getUserPaySettingList");
|
||||
PjcloudUser user = SecurityUtils.getUser();
|
||||
return R.ok(mchPaySettingService.getUserPaySettingList(user));
|
||||
}
|
||||
|
||||
+1
@@ -76,6 +76,7 @@ public class MchPaySettingServiceImpl extends ServiceImpl<MchPaySettingMapper, M
|
||||
@Override
|
||||
public List<MchPaySettingVo> getUserPaySettingList(PjcloudUser user) {
|
||||
log.error("getUserPaySettingList.user:{}", JSONUtil.toJsonStr(user));
|
||||
log.warn("getUserPaySettingList.user:{}", JSONUtil.toJsonStr(user));
|
||||
// 查询当前的登录用户
|
||||
UserInfo userInfo = remoteUserService.getByUserId(user.getId()).getData();
|
||||
if (ObjectUtil.isEmpty(userInfo)) {
|
||||
|
||||
Reference in new issue
Block a user