|
|
@@ -1,9 +1,9 @@
|
|
|
package com.jeeplus.modules.wechatpay.utils;
|
|
|
|
|
|
import com.jeeplus.modules.wechatpay.entity.HpPayAccount;
|
|
|
-import com.jeeplus.modules.wechatpay.entity.HpUser;
|
|
|
+import com.jeeplus.modules.wechatpay.entity.HpUserPay;
|
|
|
import com.jeeplus.modules.wechatpay.service.HpPayAccountService;
|
|
|
-import com.jeeplus.modules.wechatpay.service.HpUserService;
|
|
|
+import com.jeeplus.modules.wechatpay.service.HpUserPayService;
|
|
|
import net.sf.json.JSONArray;
|
|
|
import net.sf.json.JSONObject;
|
|
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
|
|
@@ -45,7 +45,7 @@ public class WeChatPay {
|
|
|
@Autowired
|
|
|
private HpPayAccountService hpPayAccountService;
|
|
|
@Autowired
|
|
|
- private HpUserService hpUserService;
|
|
|
+ private HpUserPayService hpUserService;
|
|
|
|
|
|
/**
|
|
|
* 用户支付给商家
|
|
|
@@ -110,9 +110,9 @@ public class WeChatPay {
|
|
|
}
|
|
|
|
|
|
// 获取用户openId
|
|
|
- HpUser hpUser = new HpUser();
|
|
|
+ HpUserPay hpUser = new HpUserPay();
|
|
|
hpUser = hpUserService.get(fansId);
|
|
|
- if(hpUser != null){
|
|
|
+ if (hpUser != null) {
|
|
|
openid = hpUser.getMinaOpenid();
|
|
|
}
|
|
|
|
|
|
@@ -257,10 +257,10 @@ public class WeChatPay {
|
|
|
// 获取fansId
|
|
|
String fansId = "";
|
|
|
|
|
|
- HpUser hpUser = new HpUser();
|
|
|
+ HpUserPay hpUser = new HpUserPay();
|
|
|
hpUser.setMinaOpenid(openid);
|
|
|
hpUser = hpUserService.get(hpUser);
|
|
|
- if(hpUser != null){
|
|
|
+ if (hpUser != null) {
|
|
|
fansId = hpUser.getId();
|
|
|
}
|
|
|
|