修改无忧支付配置
This commit is contained in:
@@ -15,7 +15,4 @@ public class Constants {
|
||||
final static String EXTRACT_URL = BASE_URL + "/api/salary";
|
||||
final static String EXTRACT_QUERY_URL = BASE_URL + "/api/querySalary";
|
||||
|
||||
final static String NOTIFY_URL = "https://video.hnsiyao.cn/sqx_fast/app/wuyou/notify";
|
||||
final static String EXTRACT_NOTIFY_URL = "https://video.hnsiyao.cn/sqx_fast/app/wuyou/notify";
|
||||
|
||||
}
|
||||
|
||||
@@ -13,15 +13,27 @@ import java.util.Map;
|
||||
* @author GYJ
|
||||
*/
|
||||
public class WuyouPay {
|
||||
|
||||
static String NOTIFY_URL = "";
|
||||
static String EXTRACT_NOTIFY_URL = "";
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(WuyouPay.class);
|
||||
|
||||
public static void setNotifyUrl(String notifyUrl) {
|
||||
NOTIFY_URL = notifyUrl;
|
||||
}
|
||||
|
||||
public static void setExtractNotifyUrl(String extractNotifyUrl) {
|
||||
EXTRACT_NOTIFY_URL = extractNotifyUrl;
|
||||
}
|
||||
|
||||
public static BaseResp payOrder(String orderNo, String amount, String userAgent) {
|
||||
Map<String, Object> params = getBaseParams();
|
||||
params.put("type", "6001");
|
||||
params.put("is_code", "1");
|
||||
params.put("out_trade_no", orderNo);
|
||||
params.put("total", amount);
|
||||
params.put("notify_url", Constants.NOTIFY_URL);
|
||||
params.put("notify_url", NOTIFY_URL);
|
||||
|
||||
String sign = Encrypt.getParamsSign(params);
|
||||
params.put("sign", sign);
|
||||
@@ -60,7 +72,7 @@ public class WuyouPay {
|
||||
params.put("bank_branch", "1");
|
||||
params.put("province", "1");
|
||||
params.put("city", "1");
|
||||
params.put("notify_url", Constants.EXTRACT_NOTIFY_URL);
|
||||
params.put("notify_url", EXTRACT_NOTIFY_URL);
|
||||
|
||||
String sign = Encrypt.getParamsSign(params);
|
||||
params.put("sign", sign);
|
||||
|
||||
Reference in New Issue
Block a user